GET_INTERIOR_FROM_ENTITY
Returns the handle of the interior that the entity is in.
Hash
0xB417689857646F61Runtime name
GetInteriorFromEntityNamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x2107BA504071A6BBSignature
Interior GET_INTERIOR_FROM_ENTITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Interior
Description
Returns the handle of the interior that the entity is in. Returns 0 if outside.
Usage
local retval = GetInteriorFromEntity(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xB417689857646F61, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetInteriorFromEntity(entity);
// by hash
const retval = Citizen.invokeNative('0xB417689857646F61', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xB417689857646F61, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.