Advertisement
Shiny_

Untitled

Jul 13th, 2014
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. function PedTeleport(PosX, PosY, PosZ, Angle)
  2.     if isPedInVehicle(localPlayer) then
  3.         setElementPosition(getPedOccupiedVehicle(localPlayer), PosX, PosY, PosZ)
  4.         setElementRotation(getPedOccupiedVehicle(localPlayer), 0, 0, Angle)
  5.     else
  6.         setElementRotation(localPlayer, 0, 0, Angle)
  7.         setElementPosition(localPlayer, PosX, PosY, PosZ)
  8.     end
  9. end
  10.  
  11. addCommandHandler("akina", function()
  12.     PedTeleport(412.21801757813, -3762.6408691406, 318.39645385742, 280.45614624023)
  13.     -- if isPedInVehicle(localPlayer) then
  14.     --  setElementPosition(getPedOccupiedVehicle(localPlayer), 412.21801757813, -3762.6408691406, 318.39645385742)
  15.     --  setElementRotation(getPedOccupiedVehicle(localPlayer), 0, 0, 280.45614624023)
  16.     -- else
  17.     --  setElementRotation(localPlayer, 0, 0, 280.45614624023)
  18.     --  setElementPosition(localPlayer, 412.21801757813, -3762.6408691406, 318.39645385742)
  19.     -- end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement