The Lab
VOLUME native

IS_POINT_IN_VOLUME

returns BOOL4 paramsbuild 1207

Returns true if the given point lies inside volume.

A cheap way to build trigger zones without distance checks.

Signature

C
BOOL IS_POINT_IN_VOLUME(Volume volume, float x, float y, float z); // 0xF256A75210C5C0EB b1207

Parameters

#NameType
1volumeVolume
2xfloat
3yfloat
4zfloat

Facts

Facts about IS_POINT_IN_VOLUME
Name
IS_POINT_IN_VOLUME
Hash
0xF256A75210C5C0EB
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(0xF256A75210C5C0EB, -- IS_POINT_IN_VOLUME
  0, -- Volume volume
  0.0, -- float x
  0.0, -- float y
  0.0 -- float z
)
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("0xF256A75210C5C0EB", // IS_POINT_IN_VOLUME
  0, // Volume volume
  0.0, // float x
  0.0, // float y
  0.0, // float z
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xF256A75210C5C0EB, // IS_POINT_IN_VOLUME
  0, // Volume volume
  0.0f, // float x
  0.0f, // float y
  0.0f // float z
);
All VOLUME natives

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