FiveM esx addon for adding second job, gang/mafia/etc...
if you are interested please dm me on Discord ( Pitu7944#2711 ) !
Dependencies
mysql-async
es_extended
essentialsmode
esx_property
esx_addoninventory
esx_clotheshop
Setting up your Database
import the provided pitu_multijob.sql to your Database
Setting a Job:
/pmj_setjob {id} {job} {grade}
Removing a Job:
/pmj_unsetjob {id}
Checking a Job:
/pmj_checkjob {id}
Getting info about own Job:
/pmjinfo
Adding Jobs: Just add the following code to the Config.jobs, the script will take care of the rest
{
name = 'example', -- name of the job (to set job a player do /pmj_setjob {id} {name} {grade}
blips = { -- job blips to be displayed (https://docs.fivem.net/docs/game-references/blips/)
{
color = 5, -- blip color
id = 442, -- blip sprite
pos = {x = -1174.64, y = -1153.64, z = 5.64}, -- blip position
label = 'Example - Base' -- blip Text
}
},
grades = { -- job grades
{ grade = 1, label = 'New Hire'},
{ grade = 2, label = 'Member'},
{ grade = 3, label = 'Trusted'},
{ grade = 4, label = 'Right Hand'},
{ grade = 5, label = 'Boss'},
},
zones = {
boss = { -- boss menu
rq_grade = 5,
label = 'Press ~g~[E]~w~ to open Boss Menu', -- zone action message
pos = {x = 1007.88, y = -3170.32, z = -39.72} -- zone position ( remember to subtract one from Z coord! )
},
changerooms = { -- clothing change menu
label = 'Press ~g~[E]~w~ to open Clothing Menu', -- zone action message
pos = {x = 1010.6, y = -3167.68, z = -39.72} -- zone position ( remember to subtract one from Z coord! )
},
armory = { -- weapon shop menu
label = 'Press ~g~[E]~w~ to open the Armory', -- zone action message
pos = {x = 1001.72, y = -3177.12, z = -39.72}, -- zone position ( remember to subtract one from Z coord! )
weapons = { -- add weapons here
{weaponName = 'pistol', label = 'pistol', price = 150}, -- weaponName is weapon spawnname , label is Label
{weaponName = 'sns_pistol', label = 'pistol', price = 100} -- weaponName is weapon spawnname , label is Label
}
},
storage = { -- item storage menu
label = 'Press ~g~[E]~w~ to open the Storage', -- zone action message
pos = {x = 997.88, y = -3172.72, z = -39.72}, -- zone position ( remember to subtract one from Z coord! )
},
garage = {
label = 'Press ~g~[E]~w~ to open the Garage', -- zone action message
pos = {x = 1009.32, y = -3156.2, z = -39.72}, -- zone position ( remember to subtract one from Z coord! )
vehicles = { -- add vehicles here
{spawnName = 'zentorno', label = 'Zentorno'} -- vehicle name and label
},
spawner = {
x = 1005.16, y = -3159.64, -39.72, h = 171.72 -- zone position ( remember to NOT subtract one from Z coord! )
},
},
deleter = {
label = 'Press ~g~[E]~w~ to return your Vehicle', -- zone action message
pos = {x = 1005.16, y = -3159.64, z = -39.72}, -- zone position ( remember to subtract one from Z coord! )
}
}
},
👤 Pitu7944#2711
- Github: @Pitu7944#2711
Give a ⭐️ if this project helped you!