The Lab
TASK native

_TASK_BOARD_VEHICLE_2

returns void5 paramsbuild 1207

Based on its name and signature, here is our best reading:

Alternate boarding task for ped using boardingFlags.

Signature

C
void _TASK_BOARD_VEHICLE_2(Ped ped, Any p1, int p2, float speed, int boardingFlags); // 0xE41A09C8DDFF7AA4 b1207

Parameters

#NameType
1pedPed
2p1Any
3p2int
4speedfloat
5boardingFlagsint

Facts

Facts about _TASK_BOARD_VEHICLE_2
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.

Lua
Citizen.InvokeNative(0xE41A09C8DDFF7AA4, -- _TASK_BOARD_VEHICLE_2
  PlayerPedId(), -- Ped ped
  0, -- Any p1
  0, -- int p2
  0.0, -- float speed
  0 -- int boardingFlags
)
JavaScript
// 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
);
C#
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
);
All TASK natives

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