triggerMusicEvent
TRIGGER_MUSIC_EVENT0x706D57B0F50DA710The GTA V native TRIGGER_MUSIC_EVENT of the AUDIO namespace, as LS:MP client scripts call it: the global function triggerMusicEvent, in JavaScript and in Lua.
triggerMusicEvent(eventName: string): booleantriggerMusicEvent(eventName: string): booleanUsage
JavaScript
const result = triggerMusicEvent(eventName);Lua
local result = triggerMusicEvent(eventName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
eventName | string | string | string |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
List of all usable event names found in b617d used with this native. Sorted alphabetically and identical names removed: https://pastebin.com/RzDFmB1W
All music event names found in the b617d scripts: https://pastebin.com/GnYt0R3P
Full list of music event names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/musicEventNames.json
Reference
- Namespace
- Audio AUDIO
- In the game
BOOL TRIGGER_MUSIC_EVENT(const char* eventName)- Hash
0x706D57B0F50DA710