M MY Multiplayer: Wiki
Side
Kind

setPedExitVehicle

Client

Makes a ped get out of its vehicle through the door, with the exit animation.

bool setPedExitVehicle(ped ped)

Parameters

NameTypeDescription
pedpedThe ped or player.

Returns

true if the ped started getting out or the request was sent to the server. false if the ped is not in a vehicle or is dead.

Example

bindKey("x", "down", function()
    if isPedInVehicle(localPlayer) then
        setPedExitVehicle(localPlayer)
    end
end)

See also