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