mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 21:01:43 +00:00
perf: early return when whitlisted found
Closes https://github.com/ESX-Org/esx_whitelist/issues/3
This commit is contained in:
@@ -34,6 +34,7 @@ AddEventHandler('playerConnecting', function (playerName, setKickReason)
|
||||
for i = 1, #WhiteList, 1 do
|
||||
if (tostring(WhiteList[i]) == tostring(steamID)) then
|
||||
whitelisted = true
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user