QBCore
If you don't do these steps the script won't work
Add code
qb-clothing/client/main.lua - Add code at the end of the file
exports("SaveSkin", SaveSkin)
exports("ChangeVariation", ChangeVariation)
Add code
if you use another tattoes system you should do something like this and change the trigger in customise_me.lua if you need help contact me on discord and i will help you
qb-tattooshop/client/main.lua - Add code at the end of the file
RegisterNetEvent('Refresh:Tattooes')
AddEventHandler('Refresh:Tattooes', function()
Wait(1000)
if next(currentTattoos) then
for k, v in pairs(currentTattoos) do
SetPedDecoration(PlayerPedId(), v.collection, v.nameHash)
end
end
end)
Add code
qb-core/shared/jobs.lua - Add code
['nail'] = {
label = "Nail Shop",
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Employed',
payment = 75
},
['1'] = {
name = 'Submanager',
payment = 100
},
['2'] = {
name = 'Manager',
payment = 150
},
['3'] = {
name = 'Boss',
payment = 200,
isboss = true
},
},
},
Add code
Only if you use qb-bossmenu instead of qb-management
qb-bossmenu/accounts.json - Add code
"nail":0
qb-bossmenu/config.lua in Config.Jobs - Add code
['nail'] = vector3(225.72, -1544.73, 29.49),
jc-nails/config.lua - Change "Enable" to false
Config.BossMenu = {
Enable = false, -- this line
WashMoney = false,
Coords = {
vector3(225.72, -1544.73, 29.29)
}
}
Finally there are 3 types of ways to use the script
Onlyjob
This option you must have a job like any other job
Multijob
This option is created by me with this option you can have a job and use the nails menu (If you choose this option you must execute the sql jcjobs.sql)
Store
It does not need any work and the player can change the nails at the specified coordinates (The coordinates are added in the config.lua).
If you chose option 2 these are the commands to add and remove the job
You should also verify that the key to open the job menu is not in use
/addjob (id) (job) (grade) - example /addjob 1 nail (0-3)
/removejob (id) (job) - example /removejob 1 nail
Grade 3 is the boss and could add more employees
Last updated