All exports are client-side.
toggleHud
Shows or hides the whole HUD, including the minimap radar.
-- state: true to show, false to hide.
exports['nex_hud']:toggleHud(state)
Useful for cutscenes, photo modes, or death screens:
exports['nex_hud']:toggleHud(false) -- hide during the cutscene
-- ...
exports['nex_hud']:toggleHud(true) -- bring it back
toggleMap
Shows or hides only the minimap, leaving the rest of the HUD alone.
-- state: true to show, false to hide.
exports['nex_hud']:toggleMap(state)
openSettings
Opens the settings window — the same as /hudsettings. Handy if you want to expose it from your own menu.
exports['nex_hud']:openSettings()
The export names follow the resource folder name. If you rename the nex_hud folder, call exports['your_name']:... instead.