diff --git a/server/main.lua b/server/main.lua index 1cbbebd..5fbec0f 100644 --- a/server/main.lua +++ b/server/main.lua @@ -18,7 +18,7 @@ function HUD:InfoHandle(msg, color) end function HUD:UpdatePlayerCount() - TriggerClientEvent('esx_hud:UpdatePlayerCount', -1, HUD.Data.OnlinePlayers) + GlobalState['OnlinePlayers'] = HUD.Data.OnlinePlayers end VERSION = { @@ -110,4 +110,4 @@ AddEventHandler('onResourceStart', function(resourceName) end end) end -end) \ No newline at end of file +end)