Skip to main content

installation

barber shop

[esx][paid] barber shop

[if you need items work]

  • run the sql file in your data base
  • run sql in your database
  • in client.lua set local item = true
  • add this in esx_basicneeds/server.lua
ESX.RegisterUsableItem('malezero', function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.removeInventoryItem('malezero', 1)
TriggerClientEvent("konar_barbersshopmalezero", -1)
-- xPlayer.showNotification('That was delicious.. right?')
end)

ESX.RegisterUsableItem('male1', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male1', 1)
TriggerClientEvent('konar_barbersshop:male1', source)

end)
ESX.RegisterUsableItem('male2', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male2', 1)
TriggerClientEvent('konar_barbersshop:male2', source)

end)
ESX.RegisterUsableItem('male3', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male3', 1)
TriggerClientEvent('konar_barbersshop:male3', source)

end)
ESX.RegisterUsableItem('male4', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male4', 1)
TriggerClientEvent('konar_barbersshop:male4', source)

end)
ESX.RegisterUsableItem('male5', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male5', 1)
TriggerClientEvent('konar_barbersshop:male5', source)

end)
ESX.RegisterUsableItem('male6', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male6', 1)
TriggerClientEvent('konar_barbersshop:male6', source)

end)
ESX.RegisterUsableItem('male7', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male7', 1)
TriggerClientEvent('konar_barbersshop:male7', source)

end)
ESX.RegisterUsableItem('male8', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male8', 1)
TriggerClientEvent('konar_barbersshop:male8', source)

end)
ESX.RegisterUsableItem('male9', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male9', 1)
TriggerClientEvent('konar_barbersshop:male9', source)

end)
ESX.RegisterUsableItem('male10', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male10', 1)
TriggerClientEvent('konar_barbersshop:male10', source)

end)
ESX.RegisterUsableItem('male11', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male11', 1)
TriggerClientEvent('konar_barbersshop:male11', source)

end)
ESX.RegisterUsableItem('male12', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male12', 1)
TriggerClientEvent('konar_barbersshop:male12', source)

end)
ESX.RegisterUsableItem('male13', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male13', 1)
TriggerClientEvent('konar_barbersshop:male13', source)

end)
ESX.RegisterUsableItem('male14', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male14', 1)
TriggerClientEvent('konar_barbersshop:male14', source)

end)
ESX.RegisterUsableItem('male15', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male15', 1)
TriggerClientEvent('konar_barbersshop:male15', source)

end)
ESX.RegisterUsableItem('male16', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male16', 1)
TriggerClientEvent('konar_barbersshop:male16', source)

end)
ESX.RegisterUsableItem('male17', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male17', 1)
TriggerClientEvent('konar_barbersshop:male17', source)

end)
ESX.RegisterUsableItem('male18', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male18', 1)
TriggerClientEvent('konar_barbersshop:male18', source)

end)
ESX.RegisterUsableItem('male19', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male19', 1)
TriggerClientEvent('konar_barbersshop:male19', source)

end)
ESX.RegisterUsableItem('male20', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male20', 1)
TriggerClientEvent('konar_barbersshop:male20', source)

end)
ESX.RegisterUsableItem('male21', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male21', 1)
TriggerClientEvent('konar_barbersshop:male21', source)

end)
ESX.RegisterUsableItem('male22', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('male22', 1)
TriggerClientEvent('konar_barbersshop:male22', source)

end)
--- items female
ESX.RegisterUsableItem('femal0', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal0', 1)
TriggerClientEvent('konar_barbersshop:femal0', source)

end)
ESX.RegisterUsableItem('femal1', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal1', 1)
TriggerClientEvent('konar_barbersshop:femal1', source)

end)
ESX.RegisterUsableItem('femal2', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal2', 1)
TriggerClientEvent('konar_barbersshop:femal2', source)

end)
ESX.RegisterUsableItem('femal3', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal1', 1)
TriggerClientEvent('konar_barbersshop:femal1', source)

end)
ESX.RegisterUsableItem('femal4', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal4', 1)
TriggerClientEvent('konar_barbersshop:femal4', source)

end)
ESX.RegisterUsableItem('femal5', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal5', 1)
TriggerClientEvent('konar_barbersshop:femal5', source)

end)
ESX.RegisterUsableItem('femal6', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal6', 1)
TriggerClientEvent('konar_barbersshop:femal6', source)

end)
ESX.RegisterUsableItem('femal7', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal7', 1)
TriggerClientEvent('konar_barbersshop:femal7', source)

end)
ESX.RegisterUsableItem('femal8', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal8', 1)
TriggerClientEvent('konar_barbersshop:femal8', source)

end)
ESX.RegisterUsableItem('femal9', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal9', 1)
TriggerClientEvent('konar_barbersshop:femal9', source)

end)
ESX.RegisterUsableItem('femal10', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal10', 1)
TriggerClientEvent('konar_barbersshop:femal10', source)

end)
ESX.RegisterUsableItem('femal11', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal11', 1)
TriggerClientEvent('konar_barbersshop:femal11', source)

end)
ESX.RegisterUsableItem('femal18', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal18', 1)
TriggerClientEvent('konar_barbersshop:femal18', source)

end)
ESX.RegisterUsableItem('femal20', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal20', 1)
TriggerClientEvent('konar_barbersshop:femal20', source)

end)
ESX.RegisterUsableItem('femal21', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('femal21', 1)
TriggerClientEvent('konar_barbersshop:femal21', source)

end)
ESX.RegisterUsableItem('colo0', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo0', 1)
TriggerClientEvent('konar_barbersshop:colo0', source)

end)
ESX.RegisterUsableItem('colo1', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo1', 1)
TriggerClientEvent('konar_barbersshop:colo1', source)

end)
ESX.RegisterUsableItem('colo2', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo2', 1)
TriggerClientEvent('konar_barbersshop:colo2', source)

end)
ESX.RegisterUsableItem('colo3', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo3', 1)
TriggerClientEvent('konar_barbersshop:colo3', source)

end)
ESX.RegisterUsableItem('colo4', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo4', 1)
TriggerClientEvent('konar_barbersshop:colo4', source)

end)
ESX.RegisterUsableItem('colo5', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo5', 1)
TriggerClientEvent('konar_barbersshop:colo5', source)

end)
ESX.RegisterUsableItem('colo6', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo6', 1)
TriggerClientEvent('konar_barbersshop:colo6', source)

end)
ESX.RegisterUsableItem('colo7', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo7', 1)
TriggerClientEvent('konar_barbersshop:colo7', source)

end)
ESX.RegisterUsableItem('colo8', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo8', 1)
TriggerClientEvent('konar_barbersshop:colo8', source)

end)
ESX.RegisterUsableItem('colo9', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo9', 1)
TriggerClientEvent('konar_barbersshop:colo9', source)

end)
ESX.RegisterUsableItem('colo10', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo10', 1)
TriggerClientEvent('konar_barbersshop:colo10', source)

end)
ESX.RegisterUsableItem('colo11', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo11', 1)
TriggerClientEvent('konar_barbersshop:colo11', source)

end)
ESX.RegisterUsableItem('colo12', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo12', 1)
TriggerClientEvent('konar_barbersshop:colo12', source)

end)
ESX.RegisterUsableItem('colo13', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo13', 1)
TriggerClientEvent('konar_barbersshop:colo13', source)

end)
ESX.RegisterUsableItem('colo14', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo14', 1)
TriggerClientEvent('konar_barbersshop:colo14', source)

end)
ESX.RegisterUsableItem('colo15', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo15', 1)
TriggerClientEvent('konar_barbersshop:colo15', source)

end)
ESX.RegisterUsableItem('colo16', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo16', 1)
TriggerClientEvent('konar_barbersshop:colo16', source)

end)
ESX.RegisterUsableItem('colo17', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo17', 1)
TriggerClientEvent('konar_barbersshop:colo17', source)

end)
ESX.RegisterUsableItem('colo18', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo18', 1)
TriggerClientEvent('konar_barbersshop:colo18', source)

end)
ESX.RegisterUsableItem('colo19', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo19', 1)
TriggerClientEvent('konar_barbersshop:colo19', source)

end)
ESX.RegisterUsableItem('colo20', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo20', 1)
TriggerClientEvent('konar_barbersshop:colo20', source)

end)
ESX.RegisterUsableItem('colo21', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo21', 1)
TriggerClientEvent('konar_barbersshop:colo21', source)

end)
ESX.RegisterUsableItem('colo22', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo22', 1)
TriggerClientEvent('konar_barbersshop:colo22', source)

end)
ESX.RegisterUsableItem('colo23', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo23', 1)
TriggerClientEvent('konar_barbersshop:colo23', source)

end)
ESX.RegisterUsableItem('colo24', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo24', 1)
TriggerClientEvent('konar_barbersshop:colo24', source)

end)
ESX.RegisterUsableItem('colo25', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo25', 1)
TriggerClientEvent('konar_barbersshop:colo25', source)

end)
ESX.RegisterUsableItem('colo26', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo26', 1)
TriggerClientEvent('konar_barbersshop:colo26', source)

end)
ESX.RegisterUsableItem('colo27', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo27', 1)
TriggerClientEvent('konar_barbersshop:colo27', source)

end)
ESX.RegisterUsableItem('colo28', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo28', 1)
TriggerClientEvent('konar_barbersshop:colo28', source)

end)
ESX.RegisterUsableItem('colo29', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo29', 1)
TriggerClientEvent('konar_barbersshop:colo29', source)

end)
ESX.RegisterUsableItem('colo30', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo30', 1)
TriggerClientEvent('konar_barbersshop:colo30', source)

end)
ESX.RegisterUsableItem('colo31', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo31', 1)
TriggerClientEvent('konar_barbersshop:colo31', source)

end)
ESX.RegisterUsableItem('colo32', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo32', 1)
TriggerClientEvent('konar_barbersshop:colo32', source)

end)
ESX.RegisterUsableItem('colo33', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo33', 1)
TriggerClientEvent('konar_barbersshop:colo33', source)

end)
ESX.RegisterUsableItem('colo34', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo34', 1)
TriggerClientEvent('konar_barbersshop:colo34', source)

end)
ESX.RegisterUsableItem('colo35', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo35', 1)
TriggerClientEvent('konar_barbersshop:colo35', source)

end)
ESX.RegisterUsableItem('colo36', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo36', 1)
TriggerClientEvent('konar_barbersshop:colo36', source)

end)
ESX.RegisterUsableItem('colo37', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo37', 1)
TriggerClientEvent('konar_barbersshop:colo37', source)

end)
ESX.RegisterUsableItem('colo38', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo38', 1)
TriggerClientEvent('konar_barbersshop:colo38', source)

end)
ESX.RegisterUsableItem('colo39', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo39', 1)
TriggerClientEvent('konar_barbersshop:colo39', source)

end)
ESX.RegisterUsableItem('colo40', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo40', 1)
TriggerClientEvent('konar_barbersshop:colo40', source)

end)
ESX.RegisterUsableItem('colo41', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo41', 1)
TriggerClientEvent('konar_barbersshop:colo41', source)

end)
ESX.RegisterUsableItem('colo42', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo42', 1)
TriggerClientEvent('konar_barbersshop:colo42', source)

end)
ESX.RegisterUsableItem('colo43', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo43', 1)
TriggerClientEvent('konar_barbersshop:colo43', source)

end)
ESX.RegisterUsableItem('colo44', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo44', 1)
TriggerClientEvent('konar_barbersshop:colo44', source)

end)
ESX.RegisterUsableItem('colo45', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo45', 1)
TriggerClientEvent('konar_barbersshop:colo45', source)

end)
ESX.RegisterUsableItem('colo46', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo46', 1)
TriggerClientEvent('konar_barbersshop:colo46', source)

end)
ESX.RegisterUsableItem('colo47', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo47', 1)
TriggerClientEvent('konar_barbersshop:colo47', source)

end)
ESX.RegisterUsableItem('colo48', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo48', 1)
TriggerClientEvent('konar_barbersshop:colo48', source)

end)
ESX.RegisterUsableItem('colo49', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo49', 1)
TriggerClientEvent('konar_barbersshop:colo49', source)

end)
ESX.RegisterUsableItem('colo50', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo50', 1)
TriggerClientEvent('konar_barbersshop:colo50', source)

end)
ESX.RegisterUsableItem('colo51', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo51', 1)
TriggerClientEvent('konar_barbersshop:colo51', source)

end)
ESX.RegisterUsableItem('colo52', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo52', 1)
TriggerClientEvent('konar_barbersshop:colo52', source)

end)
ESX.RegisterUsableItem('colo53', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo53', 1)
TriggerClientEvent('konar_barbersshop:colo53', source)

end)
ESX.RegisterUsableItem('colo54', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo54', 1)
TriggerClientEvent('konar_barbersshop:colo54', source)

end)
ESX.RegisterUsableItem('colo55', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo55', 1)
TriggerClientEvent('konar_barbersshop:colo55', source)

end)
ESX.RegisterUsableItem('colo56', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo56', 1)
TriggerClientEvent('konar_barbersshop:colo56', source)

end)
ESX.RegisterUsableItem('colo62', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo62', 1)
TriggerClientEvent('konar_barbersshop:colo62', source)

end)
ESX.RegisterUsableItem('colo63', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('colo63', 1)
TriggerClientEvent('konar_barbersshop:colo63', source)

end)