A Job base for FiveM
Before begining anything, you should modify the config.lua file and client/main.lua to you liking
Config.Job = "jobhere"
define the name of the job, it should be noted that it should be the same as your database name
Config.Crafting = true
Config.CraftingPos = vector3(0.0, 0.0, 0.0)
defines the the craft is enabled for this job and where the crating bench is located
Config.Zones = {
{
Pos = vector3(0.0,0.0,0.0),
Name = "boss",
},
{
Pos = vector3(0.0,0.0,0.0),
Name = "cloakroom",
}
}
defines your job points location please mind the commentary on those lines, you should define the vector3 function to define where those 2 basic points are located
This will define the stashes (created by ox_inventory) !! mind the commentary !!
This will define what items are craftable, you can leave this part if you chose to diable the craft else read carefully the commentary on those parts
This will define the work clothes for the employees
You will be able to add zone specific actions by adding
elseif currentZone == "nameofzone" then
the name of the zone is defined in the config.lua inside of Config.Zones at line 17
This script needs :
If you do not use okokNotify that's okay just replace every calls of
exports['okokNotify']:Alert
by your favorite notification system
see LICENSE