The Lab
INTERIOR native

GET_INTERIOR_FROM_COLLISION

returns Interior3 paramsbuild 1207

Returns the interior associated with the collision found at the given coordinates.

Signature

C
Interior GET_INTERIOR_FROM_COLLISION(float x, float y, float z); // 0x5054D1A5218FA696 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat

Facts

Facts about GET_INTERIOR_FROM_COLLISION
Name
GET_INTERIOR_FROM_COLLISION
Hash
0x5054D1A5218FA696
Namespace
Returns
Interior
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local interior = Citizen.InvokeNative(0x5054D1A5218FA696, -- GET_INTERIOR_FROM_COLLISION
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  Citizen.ResultAsInteger()
)
print(interior)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const interior = Citizen.invokeNative("0x5054D1A5218FA696", // GET_INTERIOR_FROM_COLLISION
  0.0, // float x
  0.0, // float y
  0.0, // float z
  Citizen.resultAsInteger()
);
console.log(interior)
C#
int interior = Function.Call<int>((Hash)0x5054D1A5218FA696, // GET_INTERIOR_FROM_COLLISION
  0.0f, // float x
  0.0f, // float y
  0.0f // float z
);
All INTERIOR natives

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