mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 16:01:27 +00:00
feat(esx_lscustom):Reasons For account changes
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user