The Lab
FIRE native

IS_EXPLOSION_IN_SPHERE

returns BOOL5 paramsbuild 1207

Returns true if an explosion of explosionType is within radius of the given point.

Signature

C
BOOL IS_EXPLOSION_IN_SPHERE(int explosionType, float x, float y, float z, float radius); // 0xD62DD846D82CBB90 b1207

Parameters

#NameType
1explosionTypeint
2xfloat
3yfloat
4zfloat
5radiusfloat

Facts

Facts about IS_EXPLOSION_IN_SPHERE
Name
IS_EXPLOSION_IN_SPHERE
Hash
0xD62DD846D82CBB90
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(0xD62DD846D82CBB90, -- IS_EXPLOSION_IN_SPHERE
  0, -- int explosionType
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0 -- float radius
)
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("0xD62DD846D82CBB90", // IS_EXPLOSION_IN_SPHERE
  0, // int explosionType
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float radius
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xD62DD846D82CBB90, // IS_EXPLOSION_IN_SPHERE
  0, // int explosionType
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f // float radius
);
All FIRE natives

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