mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
feat(esx_clotheshop): Reasons for account changes
This commit is contained in:
@@ -23,7 +23,7 @@ ESX.RegisterServerCallback('esx_clotheshop:buyClothes', function(source, cb)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
if xPlayer.getMoney() >= Config.Price then
|
||||
xPlayer.removeMoney(Config.Price)
|
||||
xPlayer.removeMoney(Config.Price, "Outfit Purchase")
|
||||
TriggerClientEvent('esx:showNotification', source, _U('you_paid', Config.Price))
|
||||
cb(true)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user