TASK_ENTER_VEHICLE
Tasks ped to enter vehicle in seat, giving up after timeout, moving at speed with flag controlling the entry.
Signature
void TASK_ENTER_VEHICLE(Ped ped, Vehicle vehicle, int timeout, int seat, float speed, int flag, Any p6); // 0xC20E50AA46D09CA8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | vehicle | Vehicle |
| 3 | timeout | int |
| 4 | seat | int |
| 5 | speed | float |
| 6 | flag | int |
| 7 | p6 | Any |
Facts
| 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.
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
)// 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
);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
);Related TASK natives
- TASK_ENTER_ANIM_SCENE
- TASK_EVERYONE_LEAVE_VEHICLE_IN_ORDER
- TASK_BREAK_VEHICLE_DOOR_LOCK
- TASK_LEAVE_ANY_VEHICLE
- TASK_LEAVE_VEHICLE
- TASK_SHUFFLE_TO_NEXT_VEHICLE_SEAT
- TASK_VEHICLE_AIM_AT_COORD
- TASK_VEHICLE_AIM_AT_PED
- TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
- TASK_VEHICLE_DRIVE_TO_COORD
- TASK_VEHICLE_DRIVE_TO_DESTINATION
- TASK_VEHICLE_DRIVE_WANDER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.