mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
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:
+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