Jump to content

WJ. J

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by WJ. J

  1. i changed a little bit, but its working, thanks
  2. when for example the tp is @pos local x = -1000 local y = -200 local z = 100 and im exactly under the z axis @ z = 0, it will tp me, but im not in the marker
  3. Hi Guys, im new in MTA and tryed to create a TP wich can TP the player and vehicles. The problem is, everything above and under will be tp too. Is there a function where i can check the z axis? Its ignoring it why ever. marker = createMarker( ....... ) function teleport(player, matchingDimension) if source == marker then if getElementType(player)=="player" then if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition(vehicle, x, y, z) setElementRotation(vehicle, x, y, z) ) end setElementPosition(player, x, y, z)) end end end addEventHandler("onClientMarkerHit", resourceRoot, teleport) PLS and thanks
×
×
  • Create New...