ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. detachPedFromVehicle

Function

detachPedFromVehicle

ServerPedsTrilogy Hub only

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)

See also