Skip to content
Documentation
Server Essentials4Top HUD

r_tophud Exports

Hide or show r_tophud from your own scripts, for shops, cameras or cutscenes, without changing the player's own toggle.

Both exports are client-side. Use them to hide the HUD while a shop, camera or cutscene is open.

setVisible

exports.r_tophud:setVisible(false) -- hide the HUD
exports.r_tophud:setVisible(true)  -- show it again

If the player has turned the HUD off with F10, setVisible(true) doesn't turn it back on.

isVisible

local visible = exports.r_tophud:isVisible()

Returns true when the HUD is on screen.