RedM Natives

_TRIGGER_TRAIN_WHISTLE

Hash0xCFE122EC635CC2B2
Runtime nameTriggerTrainWhistle
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _TRIGGER_TRAIN_WHISTLE(Vehicle train, const char* whistleSequence, BOOL p2, BOOL p3);

Parameters

NameTypeDescription
trainVehicle—
whistleSequenceconst char*—
p2BOOL—
p3BOOL—

Returns void

Description

whistleSequence: ACKNOWLEDGE, BACKING_UP, CROSSING, DANGER, MOVING, NEXT_STATION, PASSING, STOPPED
p2 = true seems to mute the sound

Usage

Lua
TriggerTrainWhistle(train, whistleSequence, p2, p3)

-- always works, by hash
Citizen.InvokeNative(0xCFE122EC635CC2B2, train, whistleSequence, p2, p3)
JavaScript and C#
JavaScript
TriggerTrainWhistle(train, whistleSequence, p2, p3);

// by hash
Citizen.invokeNative('0xCFE122EC635CC2B2', train, whistleSequence, p2, p3);
C#
Function.Call((Hash)0xCFE122EC635CC2B2, train, whistleSequence, p2, p3);
  • 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.