mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
feat(esx_drugs): Reasons for Account Changes
This commit is contained in:
@@ -21,9 +21,9 @@ AddEventHandler('esx_drugs:sellDrug', function(itemName, amount)
|
||||
price = ESX.Math.Round(price * amount)
|
||||
|
||||
if Config.GiveBlack then
|
||||
xPlayer.addAccountMoney('black_money', price)
|
||||
xPlayer.addAccountMoney('black_money', price, "Drugs Sold")
|
||||
else
|
||||
xPlayer.addMoney(price)
|
||||
xPlayer.addMoney(price, "Drugs Sold")
|
||||
end
|
||||
|
||||
xPlayer.removeInventoryItem(xItem.name, amount)
|
||||
|
||||
Reference in New Issue
Block a user