Server guide
The HUD has no server file. The server only sends values to the client through events.
Money and job on vRP
The vRP client does not have the balance. The server sends it:
your_vrp_script/server.lua
TriggerClientEvent("my_hud:money", source, vRP.getMoney(user_id), vRP.getBankMoney(user_id))functions.lua
local wallet, bank = nil, nil
RegisterNetEvent("my_hud:money", function(w, b) wallet, bank = w, b end)
function Gui.Carteira() return wallet end
function Gui.Banco() return bank endThen turn on Config.pecas.dinheiro = true (and emprego = true, if you use it). They show in the circular style.
Status sent by the server
your_script/server.lua
TriggerClientEvent("gui_hud:status", source, "sede", 45)Other events the server can send: Client events.