RedM Natives

_GET_VOLUME_BOUNDS

Hash0x5737199AF2DC609F
Runtime nameGetVolumeBounds
NamespaceVOLUME
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _GET_VOLUME_BOUNDS(Volume volume, Vector3* min, Vector3* max);

Parameters

NameTypeDescription
volumeVolume—
minVector3*—
maxVector3*—

Returns void

Usage

Lua
local min, max = GetVolumeBounds(volume)

-- always works, by hash
local min, max = Citizen.InvokeNative(0x5737199AF2DC609F, volume, Citizen.PointerValueVector(), Citizen.PointerValueVector())
JavaScript and C#
JavaScript
const [min, max] = GetVolumeBounds(volume);

// by hash
const [min, max] = Citizen.invokeNative('0x5737199AF2DC609F', volume, Citizen.pointerValueVector(), Citizen.pointerValueVector());
C#
var min = new OutputArgument();
var max = new OutputArgument();
Function.Call((Hash)0x5737199AF2DC609F, volume, min, max);
// min.GetResult<Vector3>()
// max.GetResult<Vector3>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.