Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vehicle = createVehicle(411, 0, 0, 10)
- ped = createPed(0, 0, 0, 10)
- warpPedIntoVehicle(ped, vehicle)
- -- Similar to these two Timer blocks, the same can occur with Network Packets handled in the same server frame.
- setTimer(
- function()
- destroyElement(vehicle)
- end,
- 50, 1)
- setTimer(
- function()
- local veh = getPedOccupiedVehicle(ped)
- print(tostring(veh))
- assert(veh == false or isElement(veh), "getPedOccupiedVehicle returned something invalid")
- end,
- 50, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement