TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE
Hash
0x0A11F3BDEC03ED5FRuntime name
TaskDisembarkNearestTrainCarriageNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE(Ped ped, float p1, int flags);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | float | — |
flags | int | — |
Returns void
Description
flags: See TASK_ENTER_VEHICLE
Usage
TaskDisembarkNearestTrainCarriage(ped, p1, flags)
-- always works, by hash
Citizen.InvokeNative(0x0A11F3BDEC03ED5F, ped, p1, flags)JavaScript and C#
TaskDisembarkNearestTrainCarriage(ped, p1, flags);
// by hash
Citizen.invokeNative('0x0A11F3BDEC03ED5F', ped, p1 + 0.0000001, flags);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEnterExitVehicleFlags 29 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.