The Lab
VOLUME native

_CREATE_VOLUME_LOCK

returns Volume6 paramsbuild 1207

Creates a volume lock of radius at the given coordinates with the given flags and returns its handle.

Signature

C
Volume _CREATE_VOLUME_LOCK(float x, float y, float z, float radius, int flag, Any p5); // 0x00BBF7CEAE8C666A b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4radiusfloat
5flagint
6p5Any

Facts

Facts about _CREATE_VOLUME_LOCK
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.

Lua
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)
JavaScript
// 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)
C#
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
);
All VOLUME natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.