JC Scripts
StoreDiscordYouTube
  • πŸ‘‹Welcome
  • β›” Fivem escrow system
    • ❔Error parsing script ... <\1>
    • ❓Failed to verify protected resource
  • Assets
    • πŸ’…Nails
      • Dependencies
      • Installation guide
        • QBCore
        • ESX
      • Config
      • FAQ
    • 🀑Peds
      • Dependencies
      • Installation guide
        • QBCore / ESX
      • Commands
      • Config
      • FAQ
    • πŸ’°Taxes
      • Dependencies
      • Installation guide
        • QBCore / ESX
      • Commands
      • Config
      • FAQ
    • Notify
      • Installation guide
        • QBCore
        • ESX
      • Config
      • FAQ
    • πŸ—ΊοΈPostal (Free)
      • Dependencies
      • Installation guide
        • Standalone
      • Commands
      • Config
      • FAQ
Powered by GitBook
On this page
  1. Assets
  2. Nails
  3. Installation guide

QBCore

PreviousInstallation guideNextESX

Last updated 4 months ago

If you don't do these steps the script won't work

1

Add code

qb-clothing/client/main.lua - Add code at the end of the file

exports("SaveSkin", SaveSkin)
exports("ChangeVariation", ChangeVariation)
2

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)

xnTattoos/client.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
		if v.Count ~= nil then
			for i = 1, v.Count do
				AddPedDecorationFromHashes(PlayerPedId(), v.collection, v.nameHash)
			end
		else
			AddPedDecorationFromHashes(PlayerPedId(), v.collection, v.nameHash)
		end
	end
    end
end)

rcore_tattoes/client/api/events.lua - Add code at the end of the file

RegisterNetEvent('Refresh:Tattooes')
AddEventHandler('Refresh:Tattooes', function()
    Wait(1000)
    resetPedDecorations()
end)
3

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
            },
        },
    },
4

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)
    }
}
5

Set your nails

Go to the clothing store and change the bag until you find the nails and replace those numbers in the jc-nails config in Config.Nails.Numbers

Name
Description

Id

is the slot of the clothes

Max

is the maximum color that that nail has

6

Finally there are 3 types of ways to use the script

ID
Name
Description
1

Onlyjob

This option you must have a job like any other job

2

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)

3

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

πŸ’