_SET_RANDOM_TRAINS_WHISTLE_ENABLED
Enables/disables the whistle on a specific train entity.
Hash
0x1BFBAFCC6760FF02Runtime name
SetRandomTrainsWhistleEnabledNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_RANDOM_TRAINS_WHISTLE_ENABLED(Vehicle train, BOOL enabled);Parameters
| Name | Type | Description |
|---|---|---|
train | Vehicle | — |
enabled | BOOL | — |
Returns void
Description
Enables/disables the whistle on a specific train entity.
Usage
SetRandomTrainsWhistleEnabled(train, enabled)
-- always works, by hash
Citizen.InvokeNative(0x1BFBAFCC6760FF02, train, enabled)JavaScript and C#
SetRandomTrainsWhistleEnabled(train, enabled);
// by hash
Citizen.invokeNative('0x1BFBAFCC6760FF02', train, enabled);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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.