_CREATE_VOLUME_LOCK
Creates a volume lock of radius at the given coordinates with the given flags and returns its handle.
Signature
Volume _CREATE_VOLUME_LOCK(float x, float y, float z, float radius, int flag, Any p5); // 0x00BBF7CEAE8C666A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | flag | int |
| 6 | p5 | Any |
Facts
| Name | _CREATE_VOLUME_LOCK |
|---|---|
| Hash | 0x00BBF7CEAE8C666A |
| Namespace | |
| Returns | Volume |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local volume = Citizen.InvokeNative(0x00BBF7CEAE8C666A, -- _CREATE_VOLUME_LOCK
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
0, -- int flag
0, -- Any p5
Citizen.ResultAsInteger()
)
print(volume)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const volume = Citizen.invokeNative("0x00BBF7CEAE8C666A", // _CREATE_VOLUME_LOCK
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
0, // int flag
0, // Any p5
Citizen.resultAsInteger()
);
console.log(volume)int volume = Function.Call<int>((Hash)0x00BBF7CEAE8C666A, // _CREATE_VOLUME_LOCK
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
0, // int flag
0 // Any p5
);Related VOLUME natives
- _CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY
- _CREATE_VOLUME_AGGREGATE_WITH_CUSTOM_NAME
- _CREATE_VOLUME_BOX_WITH_CUSTOM_NAME
- _CREATE_VOLUME_BY_HASH
- _CREATE_VOLUME_BY_HASH_WITH_CUSTOM_NAME
- _CREATE_VOLUME_CYLINDER_WITH_CUSTOM_NAME
- _CREATE_VOLUME_SPHERE_WITH_CUSTOM_NAME
- _CREATE_ANTI_GRIEF_VOLUME
- _CREATE_SPEED_VOLUME
- _CREATE_WALK_AND_TALK_VOLUME
- DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
- _ADD_BOX_VOLUME_TO_VOLUME_AGGREGATE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.