Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PedTeleport(PosX, PosY, PosZ, Angle)
- if isPedInVehicle(localPlayer) == true then
- veh = getPedOccupiedVehicle(localPlayer) or false
- setElementPosition(veh, PosX, PosY, PosZ)
- setElementRotation(veh, 0 or nil, 0 or nil, Angle)
- outputDebugString(veh)
- outputDebugString(PosX, PosY, PosZ)
- outputDebugString("auto")
- else
- setElementRotation(localPlayer, 0 or nil, 0 or nil, Angle)
- setElementPosition(localPlayer, PosX, PosY, PosZ)
- outputDebugString(PosX, PosY, PosZ)
- outputDebugString("pieszo")
- end
- outputDebugString("wykonało się")
- end
- addCommandHandler("akina", function(cmd)
- outputDebugString(PedTeleport(0, 0, 0, 0))
- PedTeleport(412.21801757813, -3762.6408691406, 318.39645385742, 280.45614624023)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement