The Lab
VOLUME native

DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK

returns BOOL7 paramsbuild 1207

Returns true if the sphere at the given coordinates and radius overlaps any active volume lock.

Signature

C
BOOL DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK(float x, float y, float z, float radius, BOOL p4, int p5, int p6); // 0x397769175A7DBB30 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4radiusfloat
5p4BOOL
6p5int
7p6int

Facts

Facts about DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
Name
DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
Hash
0x397769175A7DBB30
Namespace
Returns
BOOL
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(0x397769175A7DBB30, -- DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float radius
  false, -- BOOL p4
  0, -- int p5
  0 -- int p6
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x397769175A7DBB30", // DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float radius
  false, // BOOL p4
  0, // int p5
  0, // int p6
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x397769175A7DBB30, // DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float radius
  false, // BOOL p4
  0, // int p5
  0 // int p6
);
All VOLUME natives

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