SET_AUDIO_SCENE_VARIABLE
Sets the variable variable to value on the active audio scene scene.
Signature
void SET_AUDIO_SCENE_VARIABLE(const char* scene, const char* variable, float value); // 0xEF21A9EF089A2668 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | scene | const char* |
| 2 | variable | const char* |
| 3 | value | float |
Facts
| 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.
Citizen.InvokeNative(0xEF21A9EF089A2668, -- SET_AUDIO_SCENE_VARIABLE
"text", -- const char* scene
"text", -- const char* variable
0.0 -- float value
)// 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
);Function.Call((Hash)0xEF21A9EF089A2668, // SET_AUDIO_SCENE_VARIABLE
"text", // const char* scene
"text", // const char* variable
0.0f // float value
);Related AUDIO natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.