RedM Natives

TASK_WARP_PED_INTO_VEHICLE

NativeDB Introduced: v323 Warp a ped into a vehicle.

Hash0x65D4A35D
Runtime nameTaskWarpPedIntoVehicle
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void TASK_WARP_PED_INTO_VEHICLE(Ped ped, Vehicle vehicle, int seatIndex);

Parameters

NameTypeDescription
pedPed

The Ped to be warped into the vehicle.

vehicleVehicle

The target vehicle into which the ped will be warped.

seatIndexint

See eSeatPosition declared in IS_VEHICLE_SEAT_FREE.

Returns void

Description

Cfx.re native reference

NativeDB Introduced: v323

Warp a ped into a vehicle. Note: It's better to use TASK_ENTER_VEHICLE with the flag "warp" flag instead of this native.

This is the server-side RPC native equivalent of the client native TASK_WARP_PED_INTO_VEHICLE.

Usage

Lua
TaskWarpPedIntoVehicle(ped, vehicle, seatIndex)

-- always works, by hash
Citizen.InvokeNative(0x65d4a35d, ped, vehicle, seatIndex)
JavaScript and C#
JavaScript
TaskWarpPedIntoVehicle(ped, vehicle, seatIndex);

// by hash
Citizen.invokeNative('0x65d4a35d', ped, vehicle, seatIndex);
C#
Function.Call((Hash)0x65d4a35d, ped, vehicle, seatIndex);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.