RedM Natives

GET_INTERIOR_LOCATION_AND_NAMEHASH

Hash0x8451E87D3C2B0286
Runtime nameGetInteriorLocationAndNamehash
NamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207

Signature

void GET_INTERIOR_LOCATION_AND_NAMEHASH(Interior interior, Vector3* position, Hash* nameHash);

Parameters

NameTypeDescription
interiorInterior—
positionVector3*—
nameHashHash*—

Returns void

Usage

Lua
local position, nameHash = GetInteriorLocationAndNamehash(interior)

-- always works, by hash
local position, nameHash = Citizen.InvokeNative(0x8451E87D3C2B0286, interior, Citizen.PointerValueVector(), Citizen.PointerValueInt())
JavaScript and C#
JavaScript
const [position, nameHash] = GetInteriorLocationAndNamehash(interior);

// by hash
const [position, nameHash] = Citizen.invokeNative('0x8451E87D3C2B0286', interior, Citizen.pointerValueVector(), Citizen.pointerValueInt());
C#
var position = new OutputArgument();
var nameHash = new OutputArgument();
Function.Call((Hash)0x8451E87D3C2B0286, interior, position, nameHash);
// position.GetResult<Vector3>()
// nameHash.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.