fix(es_extended): return 0 from getMoney when the money account is absent

This commit is contained in:
ASTROWwwW
2026-06-22 22:51:49 +02:00
parent 3dabbd1b8a
commit b4671bafb4
+2 -1
View File
@@ -114,7 +114,8 @@ function CreateExtendedPlayer(playerId, identifier, ssn, group, accounts, invent
end
function self.getMoney()
return self.getAccount("money").money
local account = self.getAccount("money")
return account and account.money or 0
end
function self.addMoney(money, reason)