initSynchSceneAudioWithPosition
INIT_SYNCH_SCENE_AUDIO_WITH_POSITION0xC8EDE9BDBCCBA6D4The GTA V native INIT_SYNCH_SCENE_AUDIO_WITH_POSITION of the AUDIO namespace, as LS:MP client scripts call it: the global function initSynchSceneAudioWithPosition, in JavaScript and in Lua.
initSynchSceneAudioWithPosition(
audioEvent: string,
x: number,
y: number,
z: number
): voidinitSynchSceneAudioWithPosition(
audioEvent: string,
x: number,
y: number,
z: number
)Usage
JavaScript
initSynchSceneAudioWithPosition(audioEvent, x, y, z);Lua
initSynchSceneAudioWithPosition(audioEvent, x, y, z)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
initSynchSceneAudioWithPosition(audioEvent, pos);Lua · with vectors
initSynchSceneAudioWithPosition(audioEvent, pos)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
audioEvent | string | string | string |
x | float | number | number |
y | float | number | number |
z | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Audio AUDIO
- In the game
void INIT_SYNCH_SCENE_AUDIO_WITH_POSITION(const char* audioEvent, float x, float y, float z)- Hash
0xC8EDE9BDBCCBA6D4