Full View config.lua
Preview File Updated: v1.1.4 - 28.07.2023
Config = {}
Config.Core = "ESX" -- "ESX" / "QB-Core"
Config.CoreExport = function()
return exports['es_extended']:getSharedObject()
-- return exports['qb-core']:GetCoreObject()
end
Config.Notification = function(message, time, type)
if type == "success" then
exports["vms_notify"]:Notification("BARBER", message, time, "#27FF09", "fa fa-scissors")
-- ESX.ShowNotification(message)
-- QBCore.Functions.Notify(message, "success", 5000)
elseif type == "error" then
exports["vms_notify"]:Notification("BARBER", message, time, "#FF0909", "fa fa-scissors")
-- ESX.ShowNotification(message)
-- QBCore.Functions.Notify(message, "error", 5000)
end
end
Config.TextUI_Enabled = false
Config.TextUI_Open = function(msg)
exports["interact"]:Open("E", msg) -- Here you can use your TextUI or use my free one - https://github.com/vames-dev/interact
-- exports['okokTextUI']:Open('[E] '..msg, 'darkgreen', 'right')
-- exports['qb-core']:DrawText(msg, 'right')
end
Config.TextUI_Close = function()
exports["interact"]:Close() -- Here you can use your TextUI or use my free one - https://github.com/vames-dev/interact
-- exports['okokTextUI']:Close()
-- exports['qb-core']:HideText()
end
-- @PlayerLoaded for ESX: "esx:playerLoaded"
-- @PlayerLoaded for QB-Core: "QBCore:Client:OnPlayerLoaded"
Config.PlayerLoaded = 'esx:playerLoaded' -- its a trigger to load players tattoos
-- @JobUpdated for ESX: "esx:setJob"
-- @JobUpdated for QB-Core: "QBCore:Client:OnJobUpdate"
Config.JobUpdated = 'esx:setJob' -- its a trigger to check players job
-- @SkinManager for ESX: "esx_skin" / "fivem-appearance" / "illenium-appearance"
-- @SkinManager for QB-Core: "qb-clothing" / "fivem-appearance" / "illenium-appearance"
Config.SkinManager = "esx_skin"
Config.DistanceView = 8
Config.DistanceAccess = 1.1
Config.EnableShakeCam = true
Config.AnimDict = "misshair_shop@barbers"
Config.Anim = "keeper_idle_b"
Config.CanMakeup = true -- if you want a player can buy makeup's set true
Config.BossMenu = function(jobName)
TriggerEvent('esx_society:openBossMenu', jobName, function(data, menu) -- esx_society
menu.close()
end, {wash = false})
-- TriggerEvent('qb-bossmenu:client:OpenMenu') -- qb-management
end
Config.UseHairClipperRequired = false
Config.HairClipperItem = 'hair_clipper'
Config.Blip = {
["Sprite"] = 71,
["Scale"] = 0.6,
["Color"] = 3,
["Display"] = 4
}
Config.Markers = {
['BossMenu'] = {
id = 29,
color = {95, 255, 95, 125}, -- rgba
size = vec(0.33, 0.33, 0.33),
bobUpAndDown = false,
rotate = true
},
['FreeSeat'] = {
id = 21,
size = vec(0.25, 0.25, 0.25),
bobUpAndDown = false,
rotate = true
},
['TakenSeat'] = {
id = 21,
size = vec(0.25, 0.25, 0.25),
bobUpAndDown = false,
rotate = true
},
}
Config.Prices = {
["hair"] = 5500,
["beard"] = 3500,
["eye"] = 1500,
["makeup"] = 500,
}
Config.CustomNames = {
["hair_1"] = {
[0] = "Bald",
[14] = "Dreads",
[16] = "Afro curls",
},
}
Config.Barbers = {
{ -- HOT SHAVE | Carson Ave - Davis
business = false, -- If you want the player to be a barber shop employee set true
ownerJob = "", -- If business is on true, here you must specify the work that has in this salon to manage
barber = nil, -- If business is on false you can add a ped who will take care of the customer (for attractiveness and realism). If you set nil, the ped will not be.
position = vector3(136.66, -1708.4, 28.29), -- Blip coordinates
barberSpawnPos = vector4(141.45, -1705.82, 28.29, 141.47), -- If you have set barber here are the coords in which the ped spawns and goes to the player
bossMenuPos = vector3(134.75, -1707.82, 28.29),
bossMenuGrades = 'boss', -- string: 'boss' or table: {'boss', 'manager'}
takeSitMarker = {
FreeColor = {255, 9, 106, 125}, -- RGBA color, if the seat is free
TakenColor = {128, 0, 31, 110}, -- RGBA color, if the seat is taken
},
Chairs = {
[1] = {
position = vector3(136.8, -1709.88, 28.3), -- Marker coordinate to take a seat
barberPos = vector4(137.68, -1709.84, 28.3, 224.61), -- Coordinates of the ped or employee in which he will stand to tattoo the customer
chair_coord = vector4(137.77, -1710.67, 28.71, 229.93), -- Seat coordinates
taken = false, -- DO NOT CHANGE IT
},
[2] = {
position = vector3(137.79, -1708.71, 28.3),
barberPos = vector4(138.59, -1708.64, 28.3, 230.57),
chair_coord = vector4(138.72, -1709.58, 28.64, 232.26),
taken = false,
},
[3] = {
position = vector3(138.7, -1707.5, 28.3),
barberPos = vector4(139.35, -1707.5, 28.3, 223.69),
chair_coord = vector4(139.66, -1708.47, 28.64, 222.14),
taken = false,
},
}
},
{ -- HAIR ON HAWICK | Hawick Ave - Havick
business = true,
barber = "s_f_m_fembarber",
ownerJob = "police",
position = vector3(-32.15, -151.21, 56.08),
barberSpawnPos = vector4(-36.58, -156.26, 56.08, 335.87),
bossMenuPos = vector3(-30.88, -151.92, 56.08),
bossMenuGrades = 'boss',
takeSitMarker = {
FreeColor = {255, 9, 106, 125},
TakenColor = {128, 0, 31, 110},
},
Chairs = {
[1] = {
position = vector3(-33.49, -150.64, 56.09),
barberPos = vector4(-34.35, -151.05, 56.09, 70.17),
chair_coord = vector4(-34.67, -150.17, 56.44, 70.0),
taken = false,
},
[2] = {
position = vector3(-33.92, -152.11, 56.09),
barberPos = vector4(-34.92, -152.49, 56.09, 65.57),
chair_coord = vector4(-35.18, -151.61, 56.43, 80.81),
taken = false,
},
[3] = {
position = vector3(-34.41, -153.43, 56.09),
barberPos = vector4(-35.35, -153.95, 56.09, 62.71),
chair_coord = vector4(-35.7, -152.98, 56.42, 77.67),
taken = false,
},
}
},
{ -- HOT SHAVE | Magellan Ave - Conquistador St, Vespucci
business = true,
barber = "s_f_m_fembarber",
ownerJob = "police",
position = vector3(-1282.39, -1117.32, 5.99),
barberSpawnPos = vector4(-1278.26, -1119.28, 5.99, 84.21),
bossMenuPos = vector3(-1283.91, -1115.32, 5.99),
bossMenuGrades = 'boss',
takeSitMarker = {
FreeColor = {255, 9, 106, 125},
TakenColor = {128, 0, 31, 110},
},
Chairs = {
[1] = {
position = vector3(-1284.23, -1118.27, 6.0),
barberPos = vector4(-1283.68, -1118.88, 6.0, 173.31),
chair_coord = vector4(-1284.29, -1119.58, 6.32, 189.06),
taken = false,
},
[2] = {
position = vector3(-1282.81, -1118.26, 6.0),
barberPos = vector4(-1282.18, -1119.05, 6.0, 168.95),
chair_coord = vector4(-1282.83, -1119.58, 6.3, 182.93),
taken = false,
},
[3] = {
position = vector3(-1281.26, -1118.21, 6.0),
barberPos = vector4(-1280.64, -1118.99, 6.0, 173.96),
chair_coord = vector4(-1281.32, -1119.56, 6.34, 180.99),
taken = false,
},
}
},
{ -- HOT SHAVE | Mirror Park Blvd - Park Mirror
business = true,
ownerJob = "police",
barber = nil,
position = vector3(1213.42, -472.78, 65.21),
barberSpawnPos = vector4(1216.58, -476.0, 65.21, 73.17),
bossMenuPos = vector3(1211.64, -470.75, 65.21),
bossMenuGrades = 'boss',
takeSitMarker = {
FreeColor = {255, 9, 106, 125},
TakenColor = {128, 0, 31, 110},
},
Chairs = {
[1] = {
position = vector3(1210.66, -473.39, 65.22),
barberPos = vector4(1211.07, -474.24, 65.22, 161.51),
chair_coord = vector4(1210.33, -474.67, 65.53, 163.11),
taken = false,
},
[2] = {
position = vector3(1212.04, -473.8, 65.22),
barberPos = vector4(1212.56, -474.56, 65.22, 157.56),
chair_coord = vector4(1211.72, -475.02, 65.55, 166.5),
taken = false,
},
[3] = {
position = vector3(1213.64, -474.13, 65.22),
barberPos = vector4(1213.97, -475.06, 65.22, 162.07),
chair_coord = vector4(1213.18, -475.36, 65.63, 160.01),
taken = false,
},
}
},
{ -- HOT SHAVE | Paleto Blvd - Duluoz Ave, Paleto Bay
business = true,
ownerJob = "police",
barber = "s_f_m_fembarber",
position = vector3(-277.79, 6227.79, 30.7),
barberSpawnPos = vector4(-276.25, 6223.28, 30.7, 44.09),
bossMenuPos = vector3(-277.78, 6230.35, 30.7),
bossMenuGrades = 'boss',
takeSitMarker = {
FreeColor = {255, 9, 106, 125},
TakenColor = {128, 0, 31, 110},
},
Chairs = {
[1] = {
position = vector3(-280.02, 6228.49, 30.71),
barberPos = vector4(-280.08, 6227.54, 30.71, 130.38),
chair_coord = vector4(-280.99, 6227.58, 31.02, 133.88),
taken = false,
},
[2] = {
position = vector3(-278.98, 6227.4, 30.71),
barberPos = vector4(-279.01, 6226.51, 30.71, 134.92),
chair_coord = vector4(-279.91, 6226.51, 31.01, 137.31),
taken = false,
},
[3] = {
position = vector3(-277.87, 6226.38, 30.71),
barberPos = vector4(-277.97, 6225.36, 30.71, 128.69),
chair_coord = vector4(-278.88, 6225.48, 31.01, 131.52),
taken = false,
},
}
},
{ -- HOT SHAVE | Alhambra Dr - Niland Ave, Sandy Shores
business = true,
ownerJob = "police",
barber = "s_f_m_fembarber",
position = vector3(1931.31, 3730.76, 31.84),
barberSpawnPos = vector4(1930.96, 3735.47, 31.84, 206.07),
bossMenuPos = vector3(1930.73, 3728.3, 31.84),
bossMenuGrades = 'boss',
takeSitMarker = {
FreeColor = {255, 9, 106, 125},
TakenColor = {128, 0, 31, 110},
},
Chairs = {
[1] = {
position = vector3(1933.38, 3729.52, 31.85),
barberPos = vector4(1933.68, 3730.4, 31.85, 290.18),
chair_coord = vector4(1934.5, 3730.15, 32.17, 300.59),
taken = false,
},
[2] = {
position = vector3(1932.58, 3730.84, 31.85),
barberPos = vector4(1932.93, 3731.7, 31.85, 286.74),
chair_coord = vector4(1933.72, 3731.43, 32.21, 302.9),
taken = false,
},
[3] = {
position = vector3(1931.87, 3732.11, 31.85),
barberPos = vector4(1932.19, 3733.02, 31.85, 287.76),
chair_coord = vector4(1933.02, 3732.7, 32.17, 295.57),
taken = false,
},
}
},
{ -- BOB MULET | Mad Wayne Thunder Dr - Rockford Hills
business = false,
ownerJob = "",
barber = "s_f_m_fembarber",
position = vector3(-814.58, -184.39, 36.57),
barberSpawnPos = vector4(-808.27, -179.79, 36.57, 124.26),
bossMenuPos = vector3(-823.62, -184.07, 36.57),
bossMenuGrades = 'boss',
takeSitMarker = {
FreeColor = {255, 9, 106, 125},
TakenColor = {128, 0, 31, 110},
},
Chairs = {
[1] = {
position = vector3(-817.68, -184.44, 36.57),
barberPos = vector4(-818.15, -184.76, 36.57, 344.45),
chair_coord = vector4(-818.21, -183.57, 36.8, 27.48),
taken = false,
},
[2] = {
position = vector3(-815.9, -183.45, 36.57),
barberPos = vector4(-816.43, -183.68, 36.57, 351.06),
chair_coord = vector4(-816.46, -182.55, 36.8, 27.48),
taken = false,
},
[3] = {
position = vector3(-814.16, -182.53, 36.57),
barberPos = vector4(-814.65, -182.68, 36.57, 355.75),
chair_coord = vector4(-814.69, -181.53, 36.8, 33.27),
taken = false,
},
[4] = {
position = vector3(-812.44, -181.54, 36.57),
barberPos = vector4(-813.22, -181.52, 36.57, 25.87),
chair_coord = vector4(-812.97, -180.6, 36.85, 33.07),
taken = false,
},
}
},
}
Last updated