feat(esx_dmvschool): Reasons for account changes

This commit is contained in:
Mycroft
2022-09-10 00:42:55 +01:00
parent 82beeb8fcd
commit 4ab4e1491c
+1 -1
View File
@@ -2,7 +2,7 @@ ESX.RegisterServerCallback('esx_dmvschool:canYouPay', function(source, cb, type)
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer.getMoney() >= Config.Prices[type] then
xPlayer.removeMoney(Config.Prices[type])
xPlayer.removeMoney(Config.Prices[type], "DMV Purchase")
TriggerClientEvent('esx:showNotification', source, _U('you_paid', Config.Prices[type]))
cb(true)
else