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

ESX

PreviousQBCoreNextConfig

Last updated 4 months ago

1

Database Execute SQL

INSERT INTO `addon_account` (name, label, shared) VALUES
	('society_nail', 'nail', 1)
;

INSERT INTO `datastore` (name, label, shared) VALUES
	('society_nail', 'nail', 1)
;

INSERT INTO `addon_inventory` (name, label, shared) VALUES
	('society_nail', 'nail', 1)
;

INSERT INTO `jobs` (name, label, whitelisted) VALUES
	('nail','Nails Shop', 1)
;

INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
('nail', 0, 'employed', 'Employed', 100, '{}', '{}'),
('nail', 1, 'submanager', 'Submanager', 100, '{}', '{}'),
('nail', 2, 'manager', 'Manager', 100, '{}', '{}'),
('nail', 3, 'boss', 'Boss', 100, '{}', '{}');
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

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

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

4

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

πŸ’