From 3e363d522f4ce0ad24dc63f351bb8cc27bda060d Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 25 Nov 2018 13:43:16 +0100 Subject: [PATCH] Group price when buying a weapon --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index a86ef876..491a4e92 100644 --- a/server/main.lua +++ b/server/main.lua @@ -58,7 +58,7 @@ AddEventHandler('esx_weaponshop:buyItem', function(weaponName, zone) if xPlayer.getAccount('black_money').money >= price then xPlayer.removeAccountMoney('black_money', price) xPlayer.addWeapon(weaponName, 42) - TriggerClientEvent('esx:showNotification', _source, _U('buy', ESX.GetWeaponLabel(weaponName), price)) + TriggerClientEvent('esx:showNotification', _source, _U('buy', ESX.GetWeaponLabel(weaponName), ESX.Math.GroupDigits(price))) else TriggerClientEvent('esx:showNotification', _source, _U('not_enough_black')) end @@ -68,7 +68,7 @@ AddEventHandler('esx_weaponshop:buyItem', function(weaponName, zone) if xPlayer.getMoney() >= price then xPlayer.removeMoney(price) xPlayer.addWeapon(weaponName, 42) - TriggerClientEvent('esx:showNotification', _source, _U('buy', ESX.GetWeaponLabel(weaponName), price)) + TriggerClientEvent('esx:showNotification', _source, _U('buy', ESX.GetWeaponLabel(weaponName), ESX.Math.GroupDigits(price))) else TriggerClientEvent('esx:showNotification', _source, _U('not_enough')) end