feat(esx_lscustom):Reasons For account changes

This commit is contained in:
Mycroft
2022-09-10 00:48:02 +01:00
parent 620741c986
commit a321f26e3f
+1 -1
View File
@@ -25,7 +25,7 @@ AddEventHandler('esx_lscustom:buyMod', function(price)
if price < xPlayer.getMoney() then
TriggerClientEvent('esx_lscustom:installMod', source)
TriggerClientEvent('esx:showNotification', source, _U('purchased'))
xPlayer.removeMoney(price)
xPlayer.removeMoney(price, "LSC Purchase")
else
TriggerClientEvent('esx_lscustom:cancelInstallMod', source)
TriggerClientEvent('esx:showNotification', source, _U('not_enough_money'))