Skip to Content

Client exports

HUD

Mostrar

Show or hide the HUD.

---@param show boolean exports.gui_hud:Mostrar(false)

Visivel

---@return boolean -- the HUD is on screen local onScreen = exports.gui_hud:Visivel()

EsconderTopo

Hides only the top part (logo, clock and the ID, online and radio labels). The bottom part stays.

---@param hide boolean exports.gui_hud:EsconderTopo(true)

ArmaNaTela

Where the weapon panel at the top ends. false when it is not showing.

---@return number|false -- fraction of screen height (0 to 1) or false local bottom = exports.gui_hud:ArmaNaTela()

Status

Status

---@param name string -- "fome" (hunger), "sede" (thirst) or "estresse" (stress) ---@param value number -- 0 to 100 exports.gui_hud:Status("fome", 80)

Progresso

Progress bar.

---@param ms number -- duration in milliseconds exports.gui_hud:Progresso(5000)

Seatbelt

Cinto

---@return boolean local buckled = exports.gui_hud:Cinto()

DefinirCinto

---@param buckled boolean exports.gui_hud:DefinirCinto(true)

Minimap

LiberarMapa

Shows the minimap on foot, for example with a watch item.

---@param allow boolean exports.gui_hud:LiberarMapa(true)

Waypoint

CreateRoute

---@param id string ---@param coords vector3 ---@return boolean exports.gui_hud:CreateRoute("delivery", vec3(215.0, -810.0, 30.7))

DeleteRoute

---@param id string ---@return boolean exports.gui_hud:DeleteRoute("delivery")

PurgeRoutes

Removes every route created with CreateRoute.

exports.gui_hud:PurgeRoutes()