InteriorClient

getInteriorFromEntity

GET_INTERIOR_FROM_ENTITY0x2107BA504071A6BB

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

SignatureJavaScript
getInteriorFromEntity(entity: Entity): Interior
SignatureLua
getInteriorFromEntity(entity: Entity): Interior

Usage

JavaScript
const interior = getInteriorFromEntity(entity);
Lua
local interior = getInteriorFromEntity(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

Interior JavaScript number, Lua integer

Identifier of an interior.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the handle of the interior that the entity is in. Returns 0 if outside.

Reference

Namespace
Interior INTERIOR
In the game
Interior GET_INTERIOR_FROM_ENTITY(Entity entity)
Hash
0x2107BA504071A6BB

Open in the interactive natives reference