The Lab
MISC native

_GET_ENTITY_FROM_ITEM

returns Entity1 parambuild 1207

Returns the entity referenced by the item set entry item.

Signature

C
Entity _GET_ENTITY_FROM_ITEM(ScrHandle item); // 0xEE04C0AFD4EFAF0E b1207

Parameters

#NameType
1itemScrHandle

Facts

Facts about _GET_ENTITY_FROM_ITEM
Name
_GET_ENTITY_FROM_ITEM
Hash
0xEE04C0AFD4EFAF0E
Namespace
Returns
Entity
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local entity = Citizen.InvokeNative(0xEE04C0AFD4EFAF0E, -- _GET_ENTITY_FROM_ITEM
  0, -- ScrHandle item
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0xEE04C0AFD4EFAF0E", // _GET_ENTITY_FROM_ITEM
  0, // ScrHandle item
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0xEE04C0AFD4EFAF0E, // _GET_ENTITY_FROM_ITEM
  0 // ScrHandle item
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.