RedM Natives

GET_ITEM_INTERACTION_PROMPT_PROGRESS

Hash0xBC864A70AD55E0C1
Runtime nameGetItemInteractionPromptProgress
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

float GET_ITEM_INTERACTION_PROMPT_PROGRESS(Ped ped, Hash inputContext);

Parameters

NameTypeDescription
pedPed—
inputContextHash—

Returns float

Usage

Lua
local retval = GetItemInteractionPromptProgress(ped, inputContext)

-- always works, by hash
local retval = Citizen.InvokeNative(0xBC864A70AD55E0C1, ped, inputContext, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetItemInteractionPromptProgress(ped, inputContext);

// by hash
const retval = Citizen.invokeNative('0xBC864A70AD55E0C1', ped, inputContext, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xBC864A70AD55E0C1, ped, inputContext);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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