The Lab
VOLUME native

_GET_VOLUME_BOUNDS

returns void3 paramsbuild 1207

Writes the minimum and maximum corners of volume into min and max.

Signature

C
void _GET_VOLUME_BOUNDS(Volume volume, Vector3* min, Vector3* max); // 0x5737199AF2DC609F b1207

Parameters

#NameType
1volumeVolume
2minVector3* (out pointer)
3maxVector3* (out pointer)

Facts

Facts about _GET_VOLUME_BOUNDS
Name
_GET_VOLUME_BOUNDS
Hash
0x5737199AF2DC609F
Namespace
Returns
void
Game build
1207

Examples

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

Lua
local min, max = Citizen.InvokeNative(0x5737199AF2DC609F, -- _GET_VOLUME_BOUNDS
  0, -- Volume volume
  Citizen.PointerValueVector(), -- Vector3* min
  Citizen.PointerValueVector() -- Vector3* max
)
print(min, max)
JavaScript
const [min, max] = Citizen.invokeNative("0x5737199AF2DC609F", // _GET_VOLUME_BOUNDS
  0, // Volume volume
  Citizen.pointerValueVector(), // Vector3* min
  Citizen.pointerValueVector() // Vector3* max
);
console.log(min, max)
C#
var minArg = new OutputArgument();
var maxArg = new OutputArgument();
Function.Call((Hash)0x5737199AF2DC609F, // _GET_VOLUME_BOUNDS
  0, // Volume volume
  minArg, // Vector3* min
  maxArg // Vector3* max
);
Vector3 min = minArg.GetResult<Vector3>();
Vector3 max = maxArg.GetResult<Vector3>();
All VOLUME natives

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