The Lab
TASK native

TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE

returns void3 paramsbuild 1207

Tasks ped to get off the nearest train carriage.

Signature

C
void TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE(Ped ped, float p1, int flags); // 0x0A11F3BDEC03ED5F b1207

Parameters

#NameType
1pedPed
2p1float
3flagsint

Facts

Facts about TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE
Name
TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE
Hash
0x0A11F3BDEC03ED5F
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(0x0A11F3BDEC03ED5F, -- TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE
  PlayerPedId(), -- Ped ped
  0.0, -- float p1
  0 -- int flags
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x0A11F3BDEC03ED5F", // TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE
  PlayerPedId(), // Ped ped
  0.0, // float p1
  0 // int flags
);
C#
Function.Call((Hash)0x0A11F3BDEC03ED5F, // TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE
  API.PlayerPedId(), // Ped ped
  0.0f, // float p1
  0 // int flags
);
All TASK natives

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