RedM Natives

TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE

Hash0x0A11F3BDEC03ED5F
Runtime nameTaskDisembarkNearestTrainCarriage
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE(Ped ped, float p1, int flags);

Parameters

NameTypeDescription
pedPed—
p1float—
flagsint—

Returns void

Description

Usage

Lua
TaskDisembarkNearestTrainCarriage(ped, p1, flags)

-- always works, by hash
Citizen.InvokeNative(0x0A11F3BDEC03ED5F, ped, p1, flags)
JavaScript and C#
JavaScript
TaskDisembarkNearestTrainCarriage(ped, p1, flags);

// by hash
Citizen.invokeNative('0x0A11F3BDEC03ED5F', ped, p1 + 0.0000001, flags);
C#
Function.Call((Hash)0x0A11F3BDEC03ED5F, ped, p1, flags);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.