Advertisement
Shiny_

Untitled

Jul 13th, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. function PedTeleport(PosX, PosY, PosZ, Angle)
  2.     if isPedInVehicle(localPlayer) == true then
  3.         veh = getPedOccupiedVehicle(localPlayer) or false
  4.         setElementPosition(veh, PosX, PosY, PosZ)
  5.         setElementRotation(veh, 0 or nil, 0 or nil, Angle)
  6.         outputDebugString(veh)
  7.         outputDebugString(PosX, PosY, PosZ)
  8.         outputDebugString("auto")
  9.     else
  10.         setElementRotation(localPlayer, 0 or nil, 0 or nil, Angle)
  11.         setElementPosition(localPlayer, PosX, PosY, PosZ)
  12.         outputDebugString(PosX, PosY, PosZ)
  13.         outputDebugString("pieszo")
  14.     end
  15.     outputDebugString("wykonało się")
  16. end
  17.  
  18. addCommandHandler("akina", function(cmd)
  19.     outputDebugString(PedTeleport(0, 0, 0, 0))
  20.     PedTeleport(412.21801757813, -3762.6408691406, 318.39645385742, 280.45614624023)
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement