TasksClient

taskWarpPedIntoVehicle

TASK_WARP_PED_INTO_VEHICLE0x9A7D091411C5F684

The GTA V native TASK_WARP_PED_INTO_VEHICLE of the TASK namespace, as LS:MP client scripts call it: the global function taskWarpPedIntoVehicle, in JavaScript and in Lua.

SignatureJavaScript
taskWarpPedIntoVehicle(ped: Ped, vehicle: Vehicle, seat: number): void
SignatureLua
taskWarpPedIntoVehicle(ped: Ped, vehicle: Vehicle, seat: integer)

Usage

JavaScript
taskWarpPedIntoVehicle(ped, vehicle, seat);
Lua
taskWarpPedIntoVehicle(ped, vehicle, seat)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
vehicleVehiclenumberinteger
seatintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Seat Numbers


Driver = -1
Any = -2
Left-Rear = 1
Right-Front = 0
Right-Rear = 2
Extra seats = 3-14(This may differ from vehicle type e.g. Firetruck Rear Stand, Ambulance Rear)

Reference

Namespace
Tasks TASK
In the game
void TASK_WARP_PED_INTO_VEHICLE(Ped ped, Vehicle vehicle, int seat)
Hash
0x9A7D091411C5F684

Open in the interactive natives reference