The Lab
TASK native

TASK_ENTER_VEHICLE

returns void7 paramsbuild 1207

Tasks ped to enter vehicle in seat, giving up after timeout, moving at speed with flag controlling the entry.

Signature

C
void TASK_ENTER_VEHICLE(Ped ped, Vehicle vehicle, int timeout, int seat, float speed, int flag, Any p6); // 0xC20E50AA46D09CA8 b1207

Parameters

#NameType
1pedPed
2vehicleVehicle
3timeoutint
4seatint
5speedfloat
6flagint
7p6Any

Facts

Facts about TASK_ENTER_VEHICLE
Name
TASK_ENTER_VEHICLE
Hash
0xC20E50AA46D09CA8
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xC20E50AA46D09CA8, -- TASK_ENTER_VEHICLE
  PlayerPedId(), -- Ped ped
  0, -- Vehicle vehicle
  0, -- int timeout
  0, -- int seat
  0.0, -- float speed
  0, -- int flag
  0 -- Any p6
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC20E50AA46D09CA8", // TASK_ENTER_VEHICLE
  PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0, // int timeout
  0, // int seat
  0.0, // float speed
  0, // int flag
  0 // Any p6
);
C#
Function.Call((Hash)0xC20E50AA46D09CA8, // TASK_ENTER_VEHICLE
  API.PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0, // int timeout
  0, // int seat
  0.0f, // float speed
  0, // int flag
  0 // Any p6
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.