mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 06:01:30 +00:00
Merge pull request #454 from benzon/master
Added Cash support to /giveaccountmoney
This commit is contained in:
+3
-1
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user