RedM Natives

_GET_HUD_VISIBILITY_SLOT_STATE

Returns the current state value for a HUD component slot ID.

Hash0x7EC0D68233E391AC
Runtime nameGetHudVisibilitySlotState
NamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_GET_HUD_STATE

Signature

int _GET_HUD_VISIBILITY_SLOT_STATE(int hudSlot);

Parameters

NameTypeDescription
hudSlotint—

Returns int

Description

alloc8or RDR3 NativeDB

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).

VORPCORE RDR3natives

Returns the state of a specific HUD Component
eHudVisibilitySlotType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eHudVisibilitySlotType

Usage

Lua
local retval = GetHudVisibilitySlotState(hudSlot)

-- always works, by hash
local retval = Citizen.InvokeNative(0x7EC0D68233E391AC, hudSlot, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetHudVisibilitySlotState(hudSlot);

// by hash
const retval = Citizen.invokeNative('0x7EC0D68233E391AC', hudSlot, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
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 InvokeNative with the hash — it always works.

Enums and flags

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.