RedM Natives

GET_ITEM_INTERACTION_ITEM_ID

Hash0x804425C4BBD00883
Runtime nameGetItemInteractionItemId
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

Hash GET_ITEM_INTERACTION_ITEM_ID(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns Hash

Usage

Lua
local retval = GetItemInteractionItemId(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x804425C4BBD00883, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetItemInteractionItemId(ped);

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

Sources

alloc8or RDR3 NativeDB

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