# TASK::TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE

- **Hash:** `0x0A11F3BDEC03ED5F`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `TaskDisembarkNearestTrainCarriage`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE

## Signature

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

## Parameters

- `ped` (`Ped`)
- `p1` (`float`)
- `flags` (`int`)

## Returns

`void`

## Description

flags: See TASK_ENTER_VEHICLE

## Usage

### Lua

```lua
TaskDisembarkNearestTrainCarriage(ped, p1, flags)

-- always available, by hash
Citizen.InvokeNative(0x0A11F3BDEC03ED5F, ped, p1, flags)
```

### JavaScript

```js
TaskDisembarkNearestTrainCarriage(ped, p1, flags);

// by hash
Citizen.invokeNative('0x0A11F3BDEC03ED5F', ped, p1 + 0.0000001, flags);
```

### C#

```csharp
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.

## Related enums

- [eEnterExitVehicleFlags](https://natives.borderlinerp.com/enums/eEnterExitVehicleFlags.md) — 29 values

*Sources: alloc8or RDR3 NativeDB.*
