RedM Natives

GET_INTERIOR_FROM_ENTITY

Returns the handle of the interior that the entity is in.

Hash0xB417689857646F61
Runtime nameGetInteriorFromEntity
NamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2107BA504071A6BB

Signature

Interior GET_INTERIOR_FROM_ENTITY(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns Interior

Description

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

Usage

Lua
local retval = GetInteriorFromEntity(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB417689857646F61, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetInteriorFromEntity(entity);

// by hash
const retval = Citizen.invokeNative('0xB417689857646F61', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xB417689857646F61, entity);

Sources

alloc8or RDR3 NativeDB

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