_GET_ENTITY_FROM_ITEM
Hash
0xEE04C0AFD4EFAF0ERuntime name
GetEntityFromItemNamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Entity _GET_ENTITY_FROM_ITEM(ScrHandle item);Parameters
| Name | Type | Description |
|---|---|---|
item | ScrHandle | — |
Returns Entity
Usage
local retval = GetEntityFromItem(item)
-- always works, by hash
local retval = Citizen.InvokeNative(0xEE04C0AFD4EFAF0E, item, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityFromItem(item);
// by hash
const retval = Citizen.invokeNative('0xEE04C0AFD4EFAF0E', item, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xEE04C0AFD4EFAF0E, item);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.