_UI_PROMPT_IS_ACTIVE
Returns true if prompt is currently active on screen.
Signature
BOOL _UI_PROMPT_IS_ACTIVE(Prompt prompt); // 0x546E342E01DE71CF b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | prompt | Prompt |
Facts
| Name | _UI_PROMPT_IS_ACTIVE |
|---|---|
| Hash | 0x546E342E01DE71CF |
| 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(0x546E342E01DE71CF, -- _UI_PROMPT_IS_ACTIVE
0 -- Prompt prompt
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x546E342E01DE71CF", // _UI_PROMPT_IS_ACTIVE
0, // Prompt prompt
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x546E342E01DE71CF, // _UI_PROMPT_IS_ACTIVE
0 // Prompt prompt
);Related HUD natives
- _UI_PROMPT_IS_ENABLED
- _UI_PROMPT_IS_HOLD_MODE_RUNNING
- _UI_PROMPT_IS_JUST_PRESSED
- _UI_PROMPT_IS_JUST_RELEASED
- _UI_PROMPT_IS_PRESSED
- _UI_PROMPT_IS_RELEASED
- _UI_PROMPT_IS_VALID
- _UI_PROMPT_CLEAR_PROMPT_PRIORITY_PREFERENCE
- _UI_PROMPT_DISABLE_PROMPT_TYPE_THIS_FRAME
- _UI_PROMPT_ENABLE_PROMPT_TYPE_THIS_FRAME
- _UI_PROMPT_GET_GROUP_ACTIVE_PAGE
- _UI_PROMPT_SET_ACTIVE_GROUP_THIS_FRAME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.