mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Merge pull request #1379 from Mycroft-Studios/patch-4
tweak(Server/Classes/Player) Lowercase account check
This commit is contained in:
@@ -191,8 +191,10 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
|
||||
---@param account string
|
||||
---@return table | nil
|
||||
function self.getAccount(account)
|
||||
account = string.lower(account)
|
||||
for i = 1, #self.accounts do
|
||||
if self.accounts[i].name == account then
|
||||
local accountName = string.lower(self.accounts[i].name)
|
||||
if accountName == account then
|
||||
return self.accounts[i]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user