The Lab
INTERIOR native

GET_INTERIOR_LOCATION_AND_NAMEHASH

returns void3 paramsbuild 1207

Writes the position and name hash of the given interior into the output pointers.

Signature

C
void GET_INTERIOR_LOCATION_AND_NAMEHASH(Interior interior, Vector3* position, Hash* nameHash); // 0x8451E87D3C2B0286 b1207

Parameters

#NameType
1interiorInterior
2positionVector3* (out pointer)
3nameHashHash* (out pointer)

Facts

Facts about GET_INTERIOR_LOCATION_AND_NAMEHASH
Name
GET_INTERIOR_LOCATION_AND_NAMEHASH
Hash
0x8451E87D3C2B0286
Namespace
Returns
void
Game build
1207

Examples

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

Lua
local position, nameHash = Citizen.InvokeNative(0x8451E87D3C2B0286, -- GET_INTERIOR_LOCATION_AND_NAMEHASH
  0, -- Interior interior
  Citizen.PointerValueVector(), -- Vector3* position
  Citizen.PointerValueInt() -- Hash* nameHash
)
print(position, nameHash)
JavaScript
const [position, nameHash] = Citizen.invokeNative("0x8451E87D3C2B0286", // GET_INTERIOR_LOCATION_AND_NAMEHASH
  0, // Interior interior
  Citizen.pointerValueVector(), // Vector3* position
  Citizen.pointerValueInt() // Hash* nameHash
);
console.log(position, nameHash)
C#
var positionArg = new OutputArgument();
var nameHashArg = new OutputArgument();
Function.Call((Hash)0x8451E87D3C2B0286, // GET_INTERIOR_LOCATION_AND_NAMEHASH
  0, // Interior interior
  positionArg, // Vector3* position
  nameHashArg // Hash* nameHash
);
Vector3 position = positionArg.GetResult<Vector3>();
int nameHash = nameHashArg.GetResult<int>();
All INTERIOR natives

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