{"hash":"0x7EC0D68233E391AC","ns":"HUD","name":"_GET_HUD_VISIBILITY_SLOT_STATE","slug":"_GET_HUD_VISIBILITY_SLOT_STATE","official":false,"named":true,"luaName":"GetHudVisibilitySlotState","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"hudSlot","type":"int"}],"summary":"Returns the current state value for a HUD component slot ID.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the current state value for a HUD component slot ID.\nEnum: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eHudVisibilitySlotType \nNotes:\n- Component-specific semantics: the same numeric state can mean different things depending on the component.\n- 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)."},{"source":"vorp","format":"text","body":"Returns the state of a specific HUD Component\neHudVisibilitySlotType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eHudVisibilitySlotType"}],"examples":[],"aliases":["_GET_HUD_STATE"],"enums":["eHudVisibilitySlotType"],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/HUD/_GET_HUD_VISIBILITY_SLOT_STATE","markdownUrl":"https://natives.borderlinerp.com/natives/HUD/_GET_HUD_VISIBILITY_SLOT_STATE.md","snippets":{"lua":"local retval = GetHudVisibilitySlotState(hudSlot)","luaInvoke":"local retval = Citizen.InvokeNative(0x7EC0D68233E391AC, hudSlot, Citizen.ResultAsInteger())","js":"const retval = GetHudVisibilitySlotState(hudSlot);","jsInvoke":"const retval = Citizen.invokeNative('0x7EC0D68233E391AC', hudSlot, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x7EC0D68233E391AC, hudSlot);","notes":["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."]}}