InteriorClient2 outputs

getInteriorLocationAndNamehash

GET_INTERIOR_LOCATION_AND_NAMEHASH0x252BDC06B73FA6EA

The GTA V native GET_INTERIOR_LOCATION_AND_NAMEHASH of the INTERIOR namespace, as LS:MP client scripts call it: the global function getInteriorLocationAndNamehash, in JavaScript and in Lua.

SignatureJavaScript
getInteriorLocationAndNamehash(interior: Interior): [
  position: { x: number, y: number, z: number },
  nameHash: Hash
]
SignatureLua
getInteriorLocationAndNamehash(interior: Interior): Vector3, Hash

Usage

JavaScript
const [position, nameHash] = getInteriorLocationAndNamehash(interior);
Lua
local position, nameHash = getInteriorLocationAndNamehash(interior)

Parameters

ParameterTypeJavaScriptLua
interiorInteriornumberinteger

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1positionVector3{ x: number, y: number, z: number }Vector3output
2nameHashHashnumberintegeroutput

Reference

Namespace
Interior INTERIOR
In the game
void GET_INTERIOR_LOCATION_AND_NAMEHASH(Interior interior, Vector3* position, Hash* nameHash)
Hash
0x252BDC06B73FA6EA
Introduced
Game build 1290 legacy numbering
Formerly
_GET_INTERIOR_INFO

Open in the interactive natives reference