▸Sorting
Below is a list of ways you may sort jobs.
◾ Alphabetical
To sort all jobs alphabetically:
Open
lua\modules\arivia\cfg\sh_4_tabs.lua
Find
bRawData
within thecfg.tabs.jobs
table, set to falseRestart server
◾ Jobs file order
To sort jobs in order based on how they are added in config\jobrelated.lua
:
Open
lua\modules\arivia\cfg\sh_4_tabs.lua
Find
bRawData
within thecfg.tabs.jobs
table, set to trueRestart server
◾ Manual Order
To sort based on an unorganized darkrp jobs file which gives you control to define where each job appears even if you don't have the jobs organized in the darkrp file itself.
You will need to utilize the sortOrder parameter which needs to be specified for each job.
Open
lua\modules\arivia\cfg\sh_4_tabs.lua
Find
bRawData
within thecfg.tabs.jobs
table, set to falseOpen
config\jobrelated.lua
Add
sortOrder
to each job individuallyRestart server
The above code would add 3 new jobs in the category Basic:
Civilian Slot 1
Bum Slot 3
Doctor Slot 2
◾ Player Choice
In the future, a sorting option will be added which allows the player themself sort the list of jobs by any one of the following:
Job Name (A - Z, Z - A)
Salary (Least to Greatest, Greatest to Least)
Slots (Least to Greatest, Greatest to Least)
Default (How they are entered into the jobs file
Last updated