# VEHICLE::_DOES_TRAIN_EXIST_ON_TRACK

- **Hash:** `0xC29996A337BDD099`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `DoesTrainExistOnTrack`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_DOES_TRAIN_EXIST_ON_TRACK

## Signature

```c
BOOL _DOES_TRAIN_EXIST_ON_TRACK(int trackIndex);
```

## Parameters

- `trackIndex` (`int`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = DoesTrainExistOnTrack(trackIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0xC29996A337BDD099, trackIndex, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = DoesTrainExistOnTrack(trackIndex);

// by hash
const retval = Citizen.invokeNative('0xC29996A337BDD099', trackIndex, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xC29996A337BDD099, trackIndex);
```

- 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.*
