Skip to content

Commit

Permalink
Fix (ESX Whitelist): Change GetActivePlayers to GetPlayers
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycroft-Studios authored Feb 16, 2022
1 parent 0278f26 commit 1c7a71b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions [esx_addons]/esx_whitelist/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1c7a71b

Please sign in to comment.