Merge pull request #454 from benzon/master

Added Cash support to /giveaccountmoney
This commit is contained in:
Samuel
2020-01-20 11:36:08 +01:00
committed by GitHub
+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'))