The Lab
PLAYER native

GET_IS_PLAYER_UI_PROMPT_ACTIVE

returns BOOL2 paramsbuild 1207

Returns true if the given UI prompt is active for player.

Signature

C
BOOL GET_IS_PLAYER_UI_PROMPT_ACTIVE(Player player, int p1); // 0x51BEA356B1C60225 b1207

Parameters

#NameType
1playerPlayer
2p1int

Facts

Facts about GET_IS_PLAYER_UI_PROMPT_ACTIVE
Name
GET_IS_PLAYER_UI_PROMPT_ACTIVE
Hash
0x51BEA356B1C60225
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x51BEA356B1C60225, -- GET_IS_PLAYER_UI_PROMPT_ACTIVE
  PlayerId(), -- Player player
  0 -- int p1
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x51BEA356B1C60225", // GET_IS_PLAYER_UI_PROMPT_ACTIVE
  PlayerId(), // Player player
  0, // int p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x51BEA356B1C60225, // GET_IS_PLAYER_UI_PROMPT_ACTIVE
  API.PlayerId(), // Player player
  0 // int p1
);
All PLAYER natives

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