REQUEST_VOLUME_LOCK
Requests a volume lock of radius at the given coordinates and returns the request id.
Signature
int REQUEST_VOLUME_LOCK(float x, float y, float z, float radius, int p4, int p5); // 0xF14BCEF290F869E1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | p4 | int |
| 6 | p5 | int |
Facts
| Name | REQUEST_VOLUME_LOCK |
|---|---|
| Hash | 0xF14BCEF290F869E1 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xF14BCEF290F869E1, -- REQUEST_VOLUME_LOCK
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
0, -- int p4
0, -- int p5
Citizen.ResultAsInteger()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xF14BCEF290F869E1", // REQUEST_VOLUME_LOCK
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
0, // int p4
0, // int p5
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xF14BCEF290F869E1, // REQUEST_VOLUME_LOCK
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
0, // int p4
0 // int p5
);Related VOLUME natives
- REQUEST_VOLUME_LOCK_WITH_ARGS
- _FIND_VOLUME_LOCK_REQUEST_ID_WITH_ARGS
- _IS_VOLUME_LOCK_REQUEST_VALID_2
- DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
- GET_VOLUME_LOCK_REQUEST_STATUS
- IS_VOLUME_LOCK_REQUEST_VALID
- _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
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.