RedM Natives

GET_OBJECT_INDEX_FROM_ENTITY_INDEX

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).

Hash0x280BBE5601EAA983
Runtime nameGetObjectIndexFromEntityIndex
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD7E3B9735C0F89D6

Signature

Object GET_OBJECT_INDEX_FROM_ENTITY_INDEX(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns Object

Description

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).

Usage

Lua
local retval = GetObjectIndexFromEntityIndex(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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