# VEHICLE::_SET_MISSION_TRAIN_WARP_TO_COORDS

- **Hash:** `0xC9EA26893C9E4024`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `SetMissionTrainWarpToCoords`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_SET_MISSION_TRAIN_WARP_TO_COORDS

## Signature

```c
void _SET_MISSION_TRAIN_WARP_TO_COORDS(Vehicle train, float x, float y, float z, BOOL direction);
```

## Parameters

- `train` (`Vehicle`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `direction` (`BOOL`)

## Returns

`void`

## Description

Notice: BOOL p4 was wrongly named takePassengers (?)
Can be used to rotate the train by setting the BOOL direction

## Usage

### Lua

```lua
SetMissionTrainWarpToCoords(train, x, y, z, direction)

-- always available, by hash
Citizen.InvokeNative(0xC9EA26893C9E4024, train, x, y, z, direction)
```

### JavaScript

```js
SetMissionTrainWarpToCoords(train, x, y, z, direction);

// by hash
Citizen.invokeNative('0xC9EA26893C9E4024', train, x + 0.0000001, y + 0.0000001, z + 0.0000001, direction);
```

### C#

```csharp
Function.Call((Hash)0xC9EA26893C9E4024, train, x, y, z, direction);
```

- 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.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
