# VEHICLE::_SET_RANDOM_TRAINS_WHISTLE_ENABLED

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

## Signature

```c
void _SET_RANDOM_TRAINS_WHISTLE_ENABLED(Vehicle train, BOOL enabled);
```

## Parameters

- `train` (`Vehicle`)
- `enabled` (`BOOL`)

## Returns

`void`

## Description

Enables/disables the whistle on a specific train entity.

## Usage

### Lua

```lua
SetRandomTrainsWhistleEnabled(train, enabled)

-- always available, by hash
Citizen.InvokeNative(0x1BFBAFCC6760FF02, train, enabled)
```

### JavaScript

```js
SetRandomTrainsWhistleEnabled(train, enabled);

// by hash
Citizen.invokeNative('0x1BFBAFCC6760FF02', train, enabled);
```

### C#

```csharp
Function.Call((Hash)0x1BFBAFCC6760FF02, train, enabled);
```

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