prepareMusicEvent
PREPARE_MUSIC_EVENT0x1E5185B72EF5158AThe GTA V native PREPARE_MUSIC_EVENT of the AUDIO namespace, as LS:MP client scripts call it: the global function prepareMusicEvent, in JavaScript and in Lua.
prepareMusicEvent(eventName: string): booleanprepareMusicEvent(eventName: string): booleanUsage
JavaScript
const result = prepareMusicEvent(eventName);Lua
local result = prepareMusicEvent(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.
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 PREPARE_MUSIC_EVENT(const char* eventName)- Hash
0x1E5185B72EF5158A