The Lab
VOLUME native

SET_VOLUME_ROTATION

returns BOOL4 paramsbuild 1207

Sets the rotation of volume and returns a success flag.

Signature

C
BOOL SET_VOLUME_ROTATION(Volume volume, float rotX, float rotY, float rotZ); // 0xA07CF1B21B56F041 b1207

Parameters

#NameType
1volumeVolume
2rotXfloat
3rotYfloat
4rotZfloat

Facts

Facts about SET_VOLUME_ROTATION
Name
SET_VOLUME_ROTATION
Hash
0xA07CF1B21B56F041
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(0xA07CF1B21B56F041, -- SET_VOLUME_ROTATION
  0, -- Volume volume
  0.0, -- float rotX
  0.0, -- float rotY
  0.0 -- float rotZ
)
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("0xA07CF1B21B56F041", // SET_VOLUME_ROTATION
  0, // Volume volume
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xA07CF1B21B56F041, // SET_VOLUME_ROTATION
  0, // Volume volume
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f // float rotZ
);
All VOLUME natives

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