The Lab
PLAYER native

_GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED

returns BOOL4 paramsbuild 1207

Returns true if the given UI prompt type and mode is enabled for player on ped.

Signature

C
BOOL _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED(Player player, Ped ped, int promptType, int promptMode); // 0xEA8F168A76A0B9BC b1207

Parameters

#NameType
1playerPlayer
2pedPed
3promptTypeint
4promptModeint

Facts

Facts about _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
Name
_GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
Hash
0xEA8F168A76A0B9BC
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(0xEA8F168A76A0B9BC, -- _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
  PlayerId(), -- Player player
  PlayerPedId(), -- Ped ped
  0, -- int promptType
  0 -- int promptMode
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xEA8F168A76A0B9BC", // _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
  PlayerId(), // Player player
  PlayerPedId(), // Ped ped
  0, // int promptType
  0, // int promptMode
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xEA8F168A76A0B9BC, // _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
  API.PlayerId(), // Player player
  API.PlayerPedId(), // Ped ped
  0, // int promptType
  0 // int promptMode
);
All PLAYER natives

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