mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
feat(esx_accessories): Added Reason for removing money
This commit is contained in:
@@ -2,7 +2,7 @@ RegisterServerEvent('esx_accessories:pay')
|
||||
AddEventHandler('esx_accessories:pay', function()
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
xPlayer.removeMoney(Config.Price)
|
||||
xPlayer.removeMoney(Config.Price, "Accessory Purchase")
|
||||
TriggerClientEvent('esx:showNotification', source, _U('you_paid', ESX.Math.GroupDigits(Config.Price)))
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user