mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 19:28:52 +00:00
fix(es_extended/server): define GlobalState
This commit is contained in:
@@ -146,7 +146,7 @@ local placeHolders = {
|
||||
return GetCurrentServerEndpoint() or "localhost:30120"
|
||||
end,
|
||||
server_players = function()
|
||||
return GlobalState.PlayerCount
|
||||
return GlobalState.playerCount or 0
|
||||
end,
|
||||
server_maxplayers = function()
|
||||
return GetConvarInt("sv_maxClients", 48)
|
||||
|
||||
@@ -63,3 +63,5 @@ RegisterNetEvent("esx:ReturnVehicleType", function(Type, Request)
|
||||
Core.ClientCallbacks[Request] = nil
|
||||
end
|
||||
end)
|
||||
|
||||
GlobalState.playerCount = 0
|
||||
|
||||
Reference in New Issue
Block a user