IS_POINT_IN_VOLUME
Returns true if the given point lies inside volume.
A cheap way to build trigger zones without distance checks.
Signature
BOOL IS_POINT_IN_VOLUME(Volume volume, float x, float y, float z); // 0xF256A75210C5C0EB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | volume | Volume |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
Facts
| Name | IS_POINT_IN_VOLUME |
|---|---|
| Hash | 0xF256A75210C5C0EB |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xF256A75210C5C0EB, -- IS_POINT_IN_VOLUME
0, -- Volume volume
0.0, -- float x
0.0, -- float y
0.0 -- float z
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xF256A75210C5C0EB", // IS_POINT_IN_VOLUME
0, // Volume volume
0.0, // float x
0.0, // float y
0.0, // float z
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xF256A75210C5C0EB, // IS_POINT_IN_VOLUME
0, // Volume volume
0.0f, // float x
0.0f, // float y
0.0f // float z
);Related VOLUME natives
- _IS_POINT_NEAR_VOLUME_LOCK_CENTER
- IS_VOLUME_LOCK_REQUEST_VALID
- _ADD_BOX_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_CYLINDER_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_SPHERE_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_VOLUME_TO_VOLUME_AGGREGATE
- _IS_AGGREGATE_VOLUME
- _IS_VOLUME_LOCK_REQUEST_VALID_2
- DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
- _ADD_BOUNDS_TO_AGGREGATE_VOLUME
- _ADD_ENTRY_VOLUME_LOCK
- _CREATE_ANTI_GRIEF_VOLUME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.