mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Fix (ESX Whitelist): Change GetActivePlayers to GetPlayers
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user