Custom Jobs in DarkRP not going through
-
- New to forums
- Posts: 5
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Apr 17, 2014 8:37 pm
Custom Jobs in DarkRP not going through
I've programmed a custom job for DarkRP, but it seems not to work. Let me start from the beginning. When I first got the server, I accidentally moved the addons file to my desktop, but I have since then put it back. If that could cause problems, please let me know. But anyways, I programmed the job exactly like it needed to be, but wouldn't show up on my server. Is there like a specific command I need to put in for custom jobs to take affect or what? If anyone has any info, please let me know.
- Sir Nipah
- This is my homepage
- Posts: 76
- Joined: Mon Jul 08, 2013 3:38 am
- Location: Australia/Melbourne
- Contact:
Re: Custom Jobs in DarkRP not going through
Can you show us your job file within code tags. IE
[/code]
Code: Select all
[code]
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
Re: Custom Jobs in DarkRP not going through
TEAM_CUSTOMJOB = DarkRP.createJob{"S.W.A.T",}
color = Color {75, 19, 232, 255}
model = "models/player/ct_urban.mdl",
description = [[A more advanced version of the police. Your job is to do extreme police type shit such as stop robberies and raids]],
weapons = {"arrest_stick", "unarrest_stick", "weaponchecker", "stunstick", "door_ram", "keys", "m9k_scar", "m9k_m92beretta"},
command = "swat",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
})
color = Color {75, 19, 232, 255}
model = "models/player/ct_urban.mdl",
description = [[A more advanced version of the police. Your job is to do extreme police type shit such as stop robberies and raids]],
weapons = {"arrest_stick", "unarrest_stick", "weaponchecker", "stunstick", "door_ram", "keys", "m9k_scar", "m9k_m92beretta"},
command = "swat",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
})
- Sir Nipah
- This is my homepage
- Posts: 76
- Joined: Mon Jul 08, 2013 3:38 am
- Location: Australia/Melbourne
- Contact:
Re: Custom Jobs in DarkRP not going through
Incorrect use of brackets. Here is the fixed "code"
Not tested but this job should work now. If this is not your only job, you should take a look at the others.
In the future can you put your "code" in code tags..[/code]
Code: Select all
TEAM_CUSTOMJOB = DarkRP.createJob("S.W.A.T", {
color = Color (75, 19, 232, 255),
model = "models/player/ct_urban.mdl",
description = [[A more advanced version of the police. Your job is to do extreme police type shit such as stop robberies and raids]],
weapons = {"arrest_stick", "unarrest_stick", "weaponchecker", "stunstick", "door_ram", "keys", "m9k_scar", "m9k_m92beretta"},
command = "swat",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
})
In the future can you put your "code" in code tags..
Code: Select all
[code]
print("Hello World")
Re: Custom Jobs in DarkRP not going through
Appreciate the help, thanks. 
