Skip to Content
Gui. HUDCustom frameworkOverview

Custom framework

Everything that comes from the framework lives in functions.lua, which is open. Each function says what it receives and returns. Percentages are always 0 to 100.

With Config.Framework = "auto" the HUD already reads vRP, ESX, QBCore and QBox. Only touch functions.lua if your script is different.

What is wired by default

IndicatorFunctionvRPESXQBCore / QBox
Hunger, thirstGui.Fome(), Gui.Sede()events statusHunger, statusThirstesx_status (esx_basicneeds)hud:client:UpdateNeeds + metadata hunger/thirst
StressGui.Estresse()statusStressesx_status stresshud:client:UpdateStress + metadata stress
Health, armor, stamina, breathGui.Vida, Gui.Colete, Gui.Estamina, Gui.FolegoGTAGTAGTA
Voice and radioGui.Falando, Gui.AlcanceVoz, Gui.Radiopma-voice or SaltyChatsamesame
FuelGui.Combustivel(veiculo)Config.Combustivelsamesame
Money, jobGui.Carteira, Gui.Banco, Gui.Empregonot included (server guide)ESX.GetPlayerData()PlayerData.money / job
SeatbeltGui.Cinto()built into the HUDbuilt into the HUDbuilt into the HUD + seatbelt:client:ToggleSeatbelt

QBox also reads the player’s hunger, thirst and stress state bags.