AudioClient

setVariableOnSynchSceneAudio

SET_VARIABLE_ON_SYNCH_SCENE_AUDIO0xBCC29F935ED07688

The GTA V native SET_VARIABLE_ON_SYNCH_SCENE_AUDIO of the AUDIO namespace, as LS:MP client scripts call it: the global function setVariableOnSynchSceneAudio, in JavaScript and in Lua.

SignatureJavaScript
setVariableOnSynchSceneAudio(variableName: string, value: number): void
SignatureLua
setVariableOnSynchSceneAudio(variableName: string, value: number)

Usage

JavaScript
setVariableOnSynchSceneAudio(variableName, value);
Lua
setVariableOnSynchSceneAudio(variableName, value)

Parameters

ParameterTypeJavaScriptLua
variableNamestringstringstring
valuefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void SET_VARIABLE_ON_SYNCH_SCENE_AUDIO(const char* variableName, float value)
Hash
0xBCC29F935ED07688
Formerly
GET_PLAYER_HEADSET_SOUND_ALTERNATE _SET_VARIABLE_ON_CUTSCENE_AUDIO

Open in the interactive natives reference