_IS_POINT_NEAR_VOLUME_LOCK_CENTER
Based on its name and signature, here is our best reading:
Returns true if the given point is within radius of a volume lock center matching the filters.
Signature
BOOL _IS_POINT_NEAR_VOLUME_LOCK_CENTER(float x, float y, float z, float radius, int p4, int p5, int flags); // 0x769BB7626B8CDB06 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | p4 | int |
| 6 | p5 | int |
| 7 | flags | int |
Facts
| Name | _IS_POINT_NEAR_VOLUME_LOCK_CENTER |
|---|---|
| Hash | 0x769BB7626B8CDB06 |
| 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(0x769BB7626B8CDB06, -- _IS_POINT_NEAR_VOLUME_LOCK_CENTER
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
0, -- int p4
0, -- int p5
0 -- int flags
)
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("0x769BB7626B8CDB06", // _IS_POINT_NEAR_VOLUME_LOCK_CENTER
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
0, // int p4
0, // int p5
0, // int flags
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x769BB7626B8CDB06, // _IS_POINT_NEAR_VOLUME_LOCK_CENTER
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
0, // int p4
0, // int p5
0 // int flags
);Related VOLUME natives
- _IS_VOLUME_LOCK_REQUEST_VALID_2
- DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
- IS_POINT_IN_VOLUME
- IS_VOLUME_LOCK_REQUEST_VALID
- _IS_AGGREGATE_VOLUME
- _ADD_BOX_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_CYLINDER_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_ENTRY_VOLUME_LOCK
- _ADD_SPHERE_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_VOLUME_TO_VOLUME_AGGREGATE
- _CREATE_VOLUME_LOCK
- _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.