The Lab
VOLUME native

REQUEST_VOLUME_LOCK

returns int6 paramsbuild 1207

Requests a volume lock of radius at the given coordinates and returns the request id.

Signature

C
int REQUEST_VOLUME_LOCK(float x, float y, float z, float radius, int p4, int p5); // 0xF14BCEF290F869E1 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4radiusfloat
5p4int
6p5int

Facts

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

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

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