So I purchased a server and I've been working on my DarkRP jobs. It works in the server, but once i change to a job, I don't get any of the weapons, nor does it change the model. It does change the job name though. this is what I have so far. I know it is a ton, but any help is greatly appreciated. If the issue isnt in my coding, please tell me where it is
--[[---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(43, 39, 39, 255),
model = "models//player/t_arctic.mdl",
description = [[Steal, Rob, and break into people's homes.]],
weapons = {"weapon_arc_atmcard", "lockpick"},
command = "Thief",
max = 5,
salary = 40,
admin = 0,
vote = false,
hasLicense = false
-- Insert customCheck here if you have one and want one.
})
TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
color = Color(43, 39, 39, 255),
model = {"models/code_gs/robber/robberplayer.mdl", "models/dean/robber.mdl"},
description = [[You have mastered the art of being a thief. Steal, Rob, and break into people's homes/shops. Don't let anyone stand in your way.]],
weapons = {"weapon_arc_atmcard", "lockpick", "m9k_colt1911"},
command = "MThief",
max = 3,
salary = 40,
admin = 0,
vote = false,
hasLicense = false
-- Insert customCheck here if you have one and want one.
})
TEAM_CMASTERMIND = DarkRP.createJob("Criminal Mastermind", {
color = Color(43, 39, 39, 255),
model = {"models/player/pd2_chains_p.mdl", "models/player/pd2_dallas_p.mdl", "models/player/pd2_hoxton_p.mdl", "models/player/pd2_wolf_p.mdl"},
description = [[You are the brains behind the job. You've mastered thievery itself, and are as good as you can be. Steal, Rob, and break into people's homes/shops. ]],
weapons = {"weapon_arc_atmcard", "lockpick", "fas2_mp5sd6"},
command = "CMastermind",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false
-- Insert customCheck here if you have one and want one.
})
TEAM_GUN = DarkRP.createJob("Gun Dealer", {
color = Color(255, 104, 17, 255),
model = "models/monk.mdl",
description = [[Sell weapons to other players in your own Gun Store.]],
weapons = {"weapon_arc_atmcard"},
command = "GD",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false
-- Insert customCheck here if you have one and want one.
})
TEAM_HGUN = DarkRP.createJob("Heavy Gun Dealer", {
color = Color(255, 215, 0, 255),
model = "models/monk.mdl",
description = [[Sell weapons to other players in your own Gun Store.]],
weapons = {"weapon_arc_atmcard"}
command = "HGD",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false
-- Insert customCheck here if you have one and want one.
})
TEAM_BDEALER = DarkRP.createJob("Black Market Dealer", {
color = Color(0, 0, 0, 255),
model = "models/merchant.mdl",
description = [[Sell weapons to other players. You don't need to own a shop, but a small shack in an alleyway is advised.]],
weapons = {"weapon_arc_atmcard"},
command = "BMD",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false
-- Insert customCheck here if you have one and want one.
})
TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
color = Color(128, 0, 128, 255),
model = "models/h-d/2sg/simonplayer.mdl",
description = [[You're a drug dealer. Sell to all of the local kids for cheap to be hip and cool.]],
weapons = {"weapon_arc_atmcard"},
command = "DRUG",
max = 2, -- Max slots
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})
TEAM_DJ = DarkRP.createJob("DJ", {
color = Color(255, 0, 255, 255),
model = {"models/npc_djsonaconcussive.mdl", "models/npc_djsonaethereal.mdl", "models/npc_djsonakinetic.mdl"},
description = [[You're the local DJ of the town! Play music and jam out with other players.]],
weapons = {"weapon_arc_atmcard"},
command = "DJ",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})
TEAM_TERRORIST = DarkRP.createJob("Terrorist", {
color = Color(240, 230, 140, 255),
model = {"models/player/kuma/alqaeda_commando.mdl", "models/player/kuma/taliban_bomber.mdl", "models/player/kuma/taliban_grunt.mdl"},
description = [[You're a terrorist. Follow your leader and terror the overthrow the CP]],
weapons = {"weapon_arc_atmcard"},
command = "Terrorist",
max = 5,
salary = 40,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})
TEAM_TERRORISTLEADER = DarkRP.createJob("Terrorist Leader", {
color = Color(240, 230, 140, 255),
model = "models/player/kuma/taliban_rpg.mdl",
description = [[You are the leader of the Terrorists. Lead your Terrorists and terrorize the CP.]],
weapons = {"weapon_arc_atmcard", "fas2_ak47", "unarrest_stick"},
command = "Terrorist Leader",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})
TEAM_GUARD = DarkRP.createJob("Security Guard", {
color = Color(0, 191, 255, 255),
model = {"models/player/guard_pack/guard_01.mdl", "models/player/guard_pack/guard_02.mdl", "models/player/guard_pack/guard_03.mdl", "models/player/guard_pack/guard_04.mdl"},
description = [[You're security for hire. Guard your employer's base for a bit of money.]],
weapons = {"weapon_arc_atmcard", "stunstick"},
command = "Security",
max = 2,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})
TEAM_PARKOUR = DarkRP.createJob("Parkour Man", {
color = Color(139, 69, 19, 255),
model = {"models/Humans/corpse1.mdl"},
description = [[This job is not for RPing. Run around and be annoying to others. You may not have weapons.]],
weapons = {"weapon_arc_atmcard", "spiderman's_swep"},
command = "Parkour",
max = 2,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})
TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(139, 69, 19, 255),
model = {"models/Humans/corpse1.mdl"},
description = [[You are a homeless man/woman. Build a small shack on the side of the road and beg for money. You may not own any doors.]],
weapons = {"weapon_arc_atmcard", "weapon_bugbait"},
command = "Hobo",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})
TEAM_HOBOKING = DarkRP.createJob("Hobo King", {
color = Color(139, 69, 19, 255),
model = {"models/Humans/corpse1.mdl"},
description = [[You are the king of the Hobos. ]],
weapons = {"weapon_arc_atmcard", "weapon_bugbait", "weapon_angryhobo"},
command = "HoboKing",
max = 1,
salary = 0,
admin = 0,
do you get any error in server console?
[QUOTE=Busan1;47745737]do you get any error in server console?[/QUOTE]
I do not. I did prior but I fixed them
What is the model that doesn't change when you switch and also double check for missing commas other than that I'd suggest copying the jobs then pasting them into another document then pasting 2 jobs at a time and find out which job is causing it. Btw for future reference use [lua] tags just so the post isnt so long ;p you can also add the "weapon_arc_atmcard" and "weapon_fists" to the default weapons in one of the darkrp config files
[QUOTE=goobaa;47745774]What is the model that doesn't change when you switch and also double check for missing commas other than that I'd suggest copying the jobs then pasting them into another document then pasting 2 jobs at a time and find out which job is causing it. Btw for future reference use [lua] tags just so the post isnt so long ;p you can also add the "weapon_arc_atmcard" and "weapon_fists" to the default weapons in one of the darkrp config files[/QUOTE]
Well every job is in the f4 list. Just once you click it, it keeps you as a civilian, only changing your name
Sorry, you need to Log In to post a reply to this thread.