RedM Natives

GET_IS_PLAYER_UI_PROMPT_ACTIVE

Hash0x51BEA356B1C60225
Runtime nameGetIsPlayerUiPromptActive
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL GET_IS_PLAYER_UI_PROMPT_ACTIVE(Player player, int p1);

Parameters

NameTypeDescription
playerPlayer—
p1int—

Returns BOOL

Usage

Lua
local retval = GetIsPlayerUiPromptActive(player, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0x51BEA356B1C60225, player, p1, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetIsPlayerUiPromptActive(player, p1);

// by hash
const retval = Citizen.invokeNative('0x51BEA356B1C60225', player, p1, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x51BEA356B1C60225, player, p1);

Sources

alloc8or RDR3 NativeDB

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