_TASK_BOARD_VEHICLE_2
Based on its name and signature, here is our best reading:
Alternate boarding task for ped using boardingFlags.
Signature
void _TASK_BOARD_VEHICLE_2(Ped ped, Any p1, int p2, float speed, int boardingFlags); // 0xE41A09C8DDFF7AA4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | Any |
| 3 | p2 | int |
| 4 | speed | float |
| 5 | boardingFlags | int |
Facts
| Name | _TASK_BOARD_VEHICLE_2 |
|---|---|
| Hash | 0xE41A09C8DDFF7AA4 |
| 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(0xE41A09C8DDFF7AA4, -- _TASK_BOARD_VEHICLE_2
PlayerPedId(), -- Ped ped
0, -- Any p1
0, -- int p2
0.0, -- float speed
0 -- int boardingFlags
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xE41A09C8DDFF7AA4", // _TASK_BOARD_VEHICLE_2
PlayerPedId(), // Ped ped
0, // Any p1
0, // int p2
0.0, // float speed
0 // int boardingFlags
);Function.Call((Hash)0xE41A09C8DDFF7AA4, // _TASK_BOARD_VEHICLE_2
API.PlayerPedId(), // Ped ped
0, // Any p1
0, // int p2
0.0f, // float speed
0 // int boardingFlags
);Related TASK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.