The Lab
AUDIO native

SET_AUDIO_SCENE_VARIABLE

returns void3 paramsbuild 1207

Sets the variable variable to value on the active audio scene scene.

Signature

C
void SET_AUDIO_SCENE_VARIABLE(const char* scene, const char* variable, float value); // 0xEF21A9EF089A2668 b1207

Parameters

#NameType
1sceneconst char*
2variableconst char*
3valuefloat

Facts

Facts about SET_AUDIO_SCENE_VARIABLE
Name
SET_AUDIO_SCENE_VARIABLE
Hash
0xEF21A9EF089A2668
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xEF21A9EF089A2668, -- SET_AUDIO_SCENE_VARIABLE
  "text", -- const char* scene
  "text", -- const char* variable
  0.0 -- float value
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xEF21A9EF089A2668", // SET_AUDIO_SCENE_VARIABLE
  "text", // const char* scene
  "text", // const char* variable
  0.0 // float value
);
C#
Function.Call((Hash)0xEF21A9EF089A2668, // SET_AUDIO_SCENE_VARIABLE
  "text", // const char* scene
  "text", // const char* variable
  0.0f // float value
);
All AUDIO natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.