RedM Natives

GET_KEY_FOR_ENTITY_IN_ROOM

Hash0x27D7B6F79E1F4603
Runtime nameGetKeyForEntityInRoom
NamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x399685DB942336BC

Signature

Hash GET_KEY_FOR_ENTITY_IN_ROOM(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns Hash

Description

Seems to do the exact same as INTERIOR::GET_ROOM_KEY_FROM_ENTITY

Usage

Lua
local retval = GetKeyForEntityInRoom(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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