GET_OBJECT_INDEX_FROM_ENTITY_INDEX
Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
Hash
0x280BBE5601EAA983Runtime name
GetObjectIndexFromEntityIndexNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD7E3B9735C0F89D6Signature
Object GET_OBJECT_INDEX_FROM_ENTITY_INDEX(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Object
Description
Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
Usage
local retval = GetObjectIndexFromEntityIndex(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x280BBE5601EAA983, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetObjectIndexFromEntityIndex(entity);
// by hash
const retval = Citizen.invokeNative('0x280BBE5601EAA983', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x280BBE5601EAA983, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.