prepareSynchronizedAudioEventForScene
PREPARE_SYNCHRONIZED_AUDIO_EVENT_FOR_SCENE0x029FE7CD1B7E2E75The GTA V native PREPARE_SYNCHRONIZED_AUDIO_EVENT_FOR_SCENE of the AUDIO namespace, as LS:MP client scripts call it: the global function prepareSynchronizedAudioEventForScene, in JavaScript and in Lua.
prepareSynchronizedAudioEventForScene(
sceneID: number,
audioEvent: string
): booleanprepareSynchronizedAudioEventForScene(
sceneID: integer,
audioEvent: string
): booleanUsage
JavaScript
const result = prepareSynchronizedAudioEventForScene(sceneID, audioEvent);Lua
local result = prepareSynchronizedAudioEventForScene(sceneID, audioEvent)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
sceneID | int | number | integer |
audioEvent | string | string | string |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Audio AUDIO
- In the game
BOOL PREPARE_SYNCHRONIZED_AUDIO_EVENT_FOR_SCENE(int sceneID, const char* audioEvent)- Hash
0x029FE7CD1B7E2E75