getInteriorFromEntity
GET_INTERIOR_FROM_ENTITY0x2107BA504071A6BBThe 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.
getInteriorFromEntity(entity: Entity): InteriorgetInteriorFromEntity(entity: Entity): InteriorUsage
JavaScript
const interior = getInteriorFromEntity(entity);Lua
local interior = getInteriorFromEntity(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
Interior JavaScript number, Lua integerIdentifier 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