_GET_VOLUME_BOUNDS
Writes the minimum and maximum corners of volume into min and max.
Signature
void _GET_VOLUME_BOUNDS(Volume volume, Vector3* min, Vector3* max); // 0x5737199AF2DC609F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | volume | Volume |
| 2 | min | Vector3* (out pointer) |
| 3 | max | Vector3* (out pointer) |
Facts
| 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.
local min, max = Citizen.InvokeNative(0x5737199AF2DC609F, -- _GET_VOLUME_BOUNDS
0, -- Volume volume
Citizen.PointerValueVector(), -- Vector3* min
Citizen.PointerValueVector() -- Vector3* max
)
print(min, max)const [min, max] = Citizen.invokeNative("0x5737199AF2DC609F", // _GET_VOLUME_BOUNDS
0, // Volume volume
Citizen.pointerValueVector(), // Vector3* min
Citizen.pointerValueVector() // Vector3* max
);
console.log(min, max)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>();Related VOLUME natives
- _GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS
- _GET_VOLUME_RELATIONSHIP
- _ADD_BOUNDS_TO_AGGREGATE_VOLUME
- _ADD_BOX_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_CYLINDER_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_SPHERE_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_VOLUME_TO_VOLUME_AGGREGATE
- _REMOVE_BOUNDS_FROM_AGGREGATE_VOLUME
- DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
- GET_VOLUME_COORDS
- GET_VOLUME_LOCK_REQUEST_STATUS
- GET_VOLUME_ROTATION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.