feat(esx_drugs): Reasons for Account Changes

This commit is contained in:
Mycroft
2022-09-10 00:44:12 +01:00
parent 4ab4e1491c
commit 9d21e979da
+2 -2
View File
@@ -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)