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

Function

setPedExitVehicle

ServerPedsIdentical to MTA:SA

Takes a ped out of its vehicle on the server, records its "exit vehicle" task and sends every client the onClientPedExitRequest event (ped, vehicle). The exit works like removePedFromVehicle, i.e. instantly, without the door animation. Returns false when the ped is not in a vehicle.

Syntax

bool setPedExitVehicle(ped ped)

Arguments

pedped
A player or an NPC.

Returns

true on success.

Example

addCommandHandler("wysiadka", function(player)
    setPedExitVehicle(player)
end)

See also