- Documentation
- Server functions
- detachPedFromVehicle
Function
detachPedFromVehicle
Ends a ride started with attachPedToVehicle. The ped stays where it was riding, its collision comes back and the riding animation ends.
Syntax
bool detachPedFromVehicle(ped ped)Arguments
pedped- An NPC or a player.
Returns
true if the ped was riding.
Example
addCommandHandler("zejdz", function(player) detachPedFromVehicle(player) end)