Added Cash support to /giveaccountmoney

Just to have a easy way to give cash to a person i have added a check to see if account == cash, just to avoide having more commands.
This commit is contained in:
Søren Eskildsen
2020-01-20 06:33:17 +01:00
parent cced6c955e
commit 4cc9646512
+3 -1
View File
@@ -74,7 +74,9 @@ TriggerEvent('es:addGroupCommand', 'giveaccountmoney', 'admin', function(source,
local amount = tonumber(args[3])
if amount then
if xPlayer.getAccount(account) then
if account == 'cash' then
xPlayer.addMoney(amount)
else if xPlayer.getAccount(account) then
xPlayer.addAccountMoney(account, amount)
else
TriggerClientEvent('esx:showNotification', source, _U('invalid_account'))