The Lab
VOLUME native

SET_VOLUME_COORDS

returns BOOL4 paramsbuild 1207

Moves volume to the given position and returns a success flag.

Signature

C
BOOL SET_VOLUME_COORDS(Volume volume, float posX, float posY, float posZ); // 0x541B8576615C33DE b1207

Parameters

#NameType
1volumeVolume
2posXfloat
3posYfloat
4posZfloat

Facts

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

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