setPedExitVehicle
Extends MTA's authoritative vehicle-exit lifecycle with a verified native leave-car task on the syncer.
Syntax
bool setPedExitVehicle(ped thePed)GTA task mapping
05CD CTaskComplexLeaveCarSCM equivalent: TASK_LEAVE_CAR
The syncer constructs GTA's leave-car task only after the established MTA vehicle request is accepted; true does not mean the ped is already outside.
Arguments
thePedpedPed requesting exit.
Returns
true when the authoritative exit request was accepted; false otherwise.
Ownership and lifecycle
Low-level ped task calls require the client that simulates the living, streamed ped. Driving tasks also require control of the streamed vehicle. They do not create lifecycle handles; the optional native-task-runtime adds server-owned route epochs and reconstruction for drive_to routes. Gang-tag ownership is resource-exclusive, survives object streaming and recreation, and is released automatically when the owner stops.
OOP aliases
ped:setExitVehicle()
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →