Merge pull request #545 from iSentrie/patch-2

fix(es_extended): setAccountMoney logic fix
This commit is contained in:
Benzo
2022-10-07 15:48:48 +02:00
committed by GitHub
+1 -1
View File
@@ -177,7 +177,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
print(('[^1ERROR^7] Tried To Set Account ^5%s^0 For Player ^5%s^0 To An Invalid Number -> ^5%s^7'):format(accountName, self.playerId, money))
return
end
if money >= 0 then
if money > 0 then
local account = self.getAccount(accountName)
if account then