GET_IS_PLAYER_UI_PROMPT_ACTIVE
Returns true if the given UI prompt is active for player.
Signature
BOOL GET_IS_PLAYER_UI_PROMPT_ACTIVE(Player player, int p1); // 0x51BEA356B1C60225 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | p1 | int |
Facts
| 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.
local result = Citizen.InvokeNative(0x51BEA356B1C60225, -- GET_IS_PLAYER_UI_PROMPT_ACTIVE
PlayerId(), -- Player player
0 -- int p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x51BEA356B1C60225", // GET_IS_PLAYER_UI_PROMPT_ACTIVE
PlayerId(), // Player player
0, // int p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x51BEA356B1C60225, // GET_IS_PLAYER_UI_PROMPT_ACTIVE
API.PlayerId(), // Player player
0 // int p1
);Related PLAYER natives
- _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
- _GET_PLAYER_UI_PROMPT_IS_DISABLED
- GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
- _GET_ACTIVE_HORSE_FOR_PLAYER
- _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD
- _MODIFY_PLAYER_UI_PROMPT
- _MODIFY_PLAYER_UI_PROMPT_FOR_PED
- IS_PLAYER_TELEPORT_ACTIVE
- GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_MP
- GET_MOUNT_OWNED_BY_PLAYER
- GET_PLAYER_CURRENT_STEALTH_NOISE
- GET_PLAYER_GROUP
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.