The Lab
VOLUME native

SET_VOLUME_SCALE

returns BOOL4 paramsbuild 1207

Sets the scale of volume and returns a success flag.

Signature

C
BOOL SET_VOLUME_SCALE(Volume volume, float scaleX, float scaleY, float scaleZ); // 0xA46E98BDC407E23D b1207

Parameters

#NameType
1volumeVolume
2scaleXfloat
3scaleYfloat
4scaleZfloat

Facts

Facts about SET_VOLUME_SCALE
Name
SET_VOLUME_SCALE
Hash
0xA46E98BDC407E23D
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xA46E98BDC407E23D, -- SET_VOLUME_SCALE
  0, -- Volume volume
  0.0, -- float scaleX
  0.0, -- float scaleY
  0.0 -- float scaleZ
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xA46E98BDC407E23D", // SET_VOLUME_SCALE
  0, // Volume volume
  0.0, // float scaleX
  0.0, // float scaleY
  0.0, // float scaleZ
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xA46E98BDC407E23D, // SET_VOLUME_SCALE
  0, // Volume volume
  0.0f, // float scaleX
  0.0f, // float scaleY
  0.0f // float scaleZ
);
All VOLUME natives

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