So I tried to make custom jobs on a DarkRP server using ULX, and every time I try to load in and use the jobs, they aren't showing up and this is in the console.
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:39: ')' expected near '='
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
and I've been trying to fix this for an hour with no luck, so I need some help.
Here's my code
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
--------------------------------------------2-------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
color = Color(TEAM_CRIMINALS = DarkRP.createJob("Drug Dealer", {
color = Color(0, 0, 0, 0),
model = "models/Eli.mdl",
description = [[You're a drug dealer. You make and sell drugs to kids and adults alike.]],
weapons = {weapon_fists},
command = "drug",
max = 4,
salary = 10,
admin = 0,
vote = false,
hasLicense = false
})),],
TEAM_ADMIN = DarkRP.createJob("Admin-on-Duty", {
color = Color(80, 45, 0, 255),
model = "models/combineelite.mdl",
description = [[Admins who are cool and help this server run]],
weapons = {"unarrest_stick,arrest_stick,weaponchecker,lockpick,door_ram,weapon_keypadchecker"},
command = "admin",
max = 10,
salary = 150,
admin = 1,
vote = false,
hasLicense = false
})DarkRP.addHitmanTeam(TEAM_MOB)
color = Color(0, 0, 0, 0),
model = "models/css_phoenix.mdl",
description = [[You kill people for money. Enough said, now get to work.]],
weapons = {"weapon_glock2"},
command = "asassin",
max = 6,
salary = 5,
admin = 0,
vote = false,
hasLicense = false
})),],
TEAM_MERCHANTS = DarkRP.createJob("Black Market Dealer", {
color = Color(33, 44, 0, 255),
model = "models/css_guerilla.mdl",
description = [[You sell illegal Black Market items, and you may self supply if you have a store]],
weapons = {weapon_fists},
command = "BMD",
max = 3,
salary = 15,
admin = 0,
vote = true,
hasLicense = false
})),],]
TEAM_CITIZENS = DarkRP.createJob("Prostitute", {
color = Color(255,192,203, 255),
model = "models/Eli.mdl",
description = [[You give others your body for money]],
weapons = {},
command = "stripper",
max = 2,
salary = 15,
admin = 0,
vote = false,
hasLicense = false
})),],
hasLicense = false
you are missing the comma. Just like everyone else.....all the time..
sigh...
I just don't get why people lie about they try everything, they fucking don't, why aren't you showing us line 39 as the error says, why aren't you showing us what did you try, why people tries to get everything without even trying or with the less effort possible
because putting effort into something takes effort. And effort is something people DONT want to spend
I didn't try everything and you are right.
Sorry, you need to Log In to post a reply to this thread.