_GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
Returns true if the given UI prompt type and mode is enabled for player on ped.
Signature
BOOL _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED(Player player, Ped ped, int promptType, int promptMode); // 0xEA8F168A76A0B9BC b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | ped | Ped |
| 3 | promptType | int |
| 4 | promptMode | int |
Facts
| 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.
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
-- ...
endconst 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) {
// ...
}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
);Related PLAYER natives
- _GET_PLAYER_UI_PROMPT_IS_DISABLED
- _MODIFY_PLAYER_UI_PROMPT_FOR_PED
- GET_IS_PLAYER_UI_PROMPT_ACTIVE
- _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD
- _GET_PLAYER_PED_2
- _GET_ACTIVE_HORSE_FOR_PLAYER
- _GET_IS_DEADEYE_TAGGING_ENABLED
- _GET_SADDLE_HORSE_FOR_PLAYER
- _GET_PLAYER_CACHED_DEAD_EYE_AMOUNT
- _GET_PLAYER_DEAD_EYE
- _GET_PLAYER_DEAD_EYE_METER_LEVEL
- _GET_PLAYER_FREE_AIM_CLOSEST_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.