_GET_HUD_VISIBILITY_SLOT_STATE
Returns the current state value for a HUD component slot ID.
0x7EC0D68233E391ACGetHudVisibilitySlotState_GET_HUD_STATESignature
int _GET_HUD_VISIBILITY_SLOT_STATE(int hudSlot);Parameters
| Name | Type | Description |
|---|---|---|
hudSlot | int | — |
Returns int
Description
Returns the current state value for a HUD component slot ID.
Enum: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eHudVisibilitySlotType
Notes:
- Component-specific semantics: the same numeric state can mean different things depending on the component.
- Used heavily as a gating signal for prompts/targeting/UI updates (e.g., return 0 when 21==2 or 54==2; block logic when 10==2 or 10==4).
Returns the state of a specific HUD Component
eHudVisibilitySlotType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eHudVisibilitySlotType
Usage
local retval = GetHudVisibilitySlotState(hudSlot)
-- always works, by hash
local retval = Citizen.InvokeNative(0x7EC0D68233E391AC, hudSlot, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetHudVisibilitySlotState(hudSlot);
// by hash
const retval = Citizen.invokeNative('0x7EC0D68233E391AC', hudSlot, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x7EC0D68233E391AC, hudSlot);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Enums and flags
- eHudVisibilitySlotType 67 values
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.