_TRIGGER_TRAIN_WHISTLE
Hash
0xCFE122EC635CC2B2Runtime name
TriggerTrainWhistleNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _TRIGGER_TRAIN_WHISTLE(Vehicle train, const char* whistleSequence, BOOL p2, BOOL p3);Parameters
| Name | Type | Description |
|---|---|---|
train | Vehicle | — |
whistleSequence | const char* | — |
p2 | BOOL | — |
p3 | BOOL | — |
Returns void
Description
whistleSequence: ACKNOWLEDGE, BACKING_UP, CROSSING, DANGER, MOVING, NEXT_STATION, PASSING, STOPPED
p2 = true seems to mute the sound
Usage
TriggerTrainWhistle(train, whistleSequence, p2, p3)
-- always works, by hash
Citizen.InvokeNative(0xCFE122EC635CC2B2, train, whistleSequence, p2, p3)JavaScript and C#
TriggerTrainWhistle(train, whistleSequence, p2, p3);
// by hash
Citizen.invokeNative('0xCFE122EC635CC2B2', train, whistleSequence, p2, p3);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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.