Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PedTeleport(PosX, PosY, PosZ, Angle)
- if isPedInVehicle(localPlayer) then
- setElementPosition(getPedOccupiedVehicle(localPlayer), PosX, PosY, PosZ)
- setElementRotation(getPedOccupiedVehicle(localPlayer), 0, 0, Angle)
- else
- setElementRotation(localPlayer, 0, 0, Angle)
- setElementPosition(localPlayer, PosX, PosY, PosZ)
- end
- end
- addCommandHandler("akina", function()
- PedTeleport(412.21801757813, -3762.6408691406, 318.39645385742, 280.45614624023)
- -- if isPedInVehicle(localPlayer) then
- -- setElementPosition(getPedOccupiedVehicle(localPlayer), 412.21801757813, -3762.6408691406, 318.39645385742)
- -- setElementRotation(getPedOccupiedVehicle(localPlayer), 0, 0, 280.45614624023)
- -- else
- -- setElementRotation(localPlayer, 0, 0, 280.45614624023)
- -- setElementPosition(localPlayer, 412.21801757813, -3762.6408691406, 318.39645385742)
- -- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement