RedM Natives

_SET_RANDOM_TRAINS_WHISTLE_ENABLED

Enables/disables the whistle on a specific train entity.

Hash0x1BFBAFCC6760FF02
Runtime nameSetRandomTrainsWhistleEnabled
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_RANDOM_TRAINS_WHISTLE_ENABLED(Vehicle train, BOOL enabled);

Parameters

NameTypeDescription
trainVehicle—
enabledBOOL—

Returns void

Description

Enables/disables the whistle on a specific train entity.

Usage

Lua
SetRandomTrainsWhistleEnabled(train, enabled)

-- always works, by hash
Citizen.InvokeNative(0x1BFBAFCC6760FF02, train, enabled)
JavaScript and C#
JavaScript
SetRandomTrainsWhistleEnabled(train, enabled);

// by hash
Citizen.invokeNative('0x1BFBAFCC6760FF02', train, enabled);
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.