Fix (ESX Whitelist): Change GetActivePlayers to GetPlayers

This commit is contained in:
Mycroft
2022-02-16 23:52:58 +00:00
committed by GitHub
parent 0278f26c17
commit 1c7a71b1d6
+2 -2
View File
@@ -19,8 +19,8 @@ MySQL.ready(function()
end)
AddEventHandler('playerConnecting', function(name, setCallback, deferrals)
if #GetActivePlayers() < Config.MinPlayer then
CancelEvent()
if #GetPlayers() < Config.MinPlayer then
deferrals.done()
end
-- Mark this connection as deferred, this is to prevent problems while checking player identifiers.