The Lab
VEHICLE native

_TRIGGER_TRAIN_WHISTLE

returns void4 paramsbuild 1207

Plays the whistle sequence whistleSequence on train.

Signature

C
void _TRIGGER_TRAIN_WHISTLE(Vehicle train, const char* whistleSequence, BOOL p2, BOOL p3); // 0xCFE122EC635CC2B2 b1207

Parameters

#NameType
1trainVehicle
2whistleSequenceconst char*
3p2BOOL
4p3BOOL

Facts

Facts about _TRIGGER_TRAIN_WHISTLE
Name
_TRIGGER_TRAIN_WHISTLE
Hash
0xCFE122EC635CC2B2
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xCFE122EC635CC2B2, -- _TRIGGER_TRAIN_WHISTLE
  0, -- Vehicle train
  "text", -- const char* whistleSequence
  false, -- BOOL p2
  false -- BOOL p3
)
JavaScript
Citizen.invokeNative("0xCFE122EC635CC2B2", // _TRIGGER_TRAIN_WHISTLE
  0, // Vehicle train
  "text", // const char* whistleSequence
  false, // BOOL p2
  false // BOOL p3
);
C#
Function.Call((Hash)0xCFE122EC635CC2B2, // _TRIGGER_TRAIN_WHISTLE
  0, // Vehicle train
  "text", // const char* whistleSequence
  false, // BOOL p2
  false // BOOL p3
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.