• DarkRP job models aren't working! Please help
    11 replies, posted
The models for my jobs aren't working. It's using whatever model the player has chosen in the context menu for sandbox. Please, help!
Post your job code in [code] tags.
Seems like an odd base model fuck-up.
[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 jobs under the following line: ---------------------------------------------------------------------------]] TEAM_SWATM = AddExtraTeam("SWAT Member", { color = Color(0, 0, 204, 255), model = "models/player/swat.mdl", description = [[Help the police and protect the mayor. Simple.]], weapons = {"weapon_fists", "arrest_stick", "unarrest_stick", "weapon_real_cs_p228", "stunstick", "door_ram", "weaponchecker", "m9k_mp5sd", }, command = "swatm", max = 4, salary = 75, admin = 0, vote = true, hasLicense = false, category = "Civil Protection", sortorder = 100, }) TEAM_PROTHIEF = DarkRP.createJob("Pro Thief", { VIPOnly = true, color = Color(0, 102, 255, 255), model = "models/player/arctic.mdl", description = [[As a thief you raid people's houses and mug people. Must advert all raids/mugs like so, /advert Raid! or /advert Mug drop (ammount).]], weapons = {"lockpick", "swep_pickpocket", "climb_swep2", "m9k_uzi", }, command = "prothief", max = 4, salary = 60, admin = 0, vote = false, hasLicense = false, category = "Thieves", sortorder = 100, customCheck = function(ply) return ply:GetUserGroup() == "gold" or ply:GetUserGroup() == "vip" or ply:GetUserGroup() == "v_moderator" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "owner" or ply:GetUserGroup() == "v_admin" or ply:GetUserGroup() == "co-owner" or ply:GetUserGroup() == "g_moderator" or ply:GetUserGroup() == "g_admin" or ply:GetUserGroup() == "g_jradmin" end, CustomCheckFailMsg = "This Job Is For Donators Only" }) TEAM_FBI = AddExtraTeam("FBI", { color = Color(255, 145, 0, 255), model = "models/player/combine_soldier_prisonguard.mdl", description = [[Solve crimes.]], weapons = {"m9k_usp"}, command = "fbi", max = 2, salary = 60, admin = 0, vote = true, hasLicense = true, category = "Civil Protection", sortorder = 100, }) TEAM_THIEF = AddExtraTeam("Thief", { color = Color(0, 0, 51, 255), model = "models/player/t_phoenix.mdl", description = [[Steal things from people, Raid, etc.]], weapons = {"keypad_cracker","lockpick","swep_pickpocket"}, command = "thief", max = 4, salary = 50, admin = 0, vote = false, haxLicense = false, category = "Thieves", sortorder = 1, }) TEAM_HITMAN = AddExtraTeam("Hitman", { color = Color(0, 255, 0, 255), model = "models/player/leet.mdl", description = [[Request hits, kill the person, make money.]], command = "hitman", max = 2, salary = 60, admin = 0, vote = false, hasLicense = false, }) TEAM_SSNIPER = AddExtraTeam("SWAT Sniper", { VIPOnly = true, color = Color(50, 145, 31, 255), model = "models/player/urban.mdl", description = [[You help the swat from the back lines.]], weapons = {"m9k_intervention", "m9k_deagle", "weaponchecker", "arrest_stick", "unarrest_stick", "door_ram"}, command = "ssniper", max = 2, salary = 60, admin = 0, vote = true, hasLicense = true, customCheck = function(ply) return ply:GetUserGroup() == "gold" or ply:GetUserGroup() == "vip" or ply:GetUserGroup() == "v_moderator" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "owner" or ply:GetUserGroup() == "v_admin" or ply:GetUserGroup() == "co-owner" or ply:GetUserGroup() == "g_moderator" or ply:GetUserGroup() == "g_admin" or ply:GetUserGroup() == "g_jradmin" end,}) TEAM_DRUG = AddExtraTeam("Drug Dealer", { color = Color(255,102,0,255), model = "models/player/eli.mdl", description = [[Drug Dealers sell drugs. But dont get arrested by the cops!]], command = "drugdealer", max = 2, salary = 35, admin = 0, vote = false, hasLicense = false, }) TEAM_BANKER = AddExtraTeam("Banker", { color = Color(102,0,102,255), model = "models/player/hostage/hostage_01.mdl", description = [[Bankers are people storing stuff for other. They cant take deposited items for themself!]], command = "banker", max = 3 , salary = 70, admin = 0, vote = false, hasLicense = true, }) TEAM_CORVO = AddExtraTeam("Corvo", { color = Color(80, 0, 0, 255), model = "models/player/corvo.mdl", description = [[Gintoki's Custom Job]], weapons = {"rwp_kukri","rwp_knife","rwp_bfr","rwp_sr200","rwp_ameli","rwp_dao12","m9k_nerve_gas","weapon_hack_phone","divine_flintlock","scout_xbow"}, command = "corvo", max =1, salary =666, admin = 1, vote = false, hasLicense =true, }) --[[--------------------------------------------------------------------------- Define which team joining players spawn into and what team you change to if demoted ---------------------------------------------------------------------------]] 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_HITMAN) [/CODE]
Why do you use DarkRP.createJob in some places and AddExtraTeam in others?
Some jobs are older. Should I use DarkRP.createJob?
Whatever the most updated function is. I assume it's createjob
I don't know why but it's still not working. It was just working over the weekend.
Did you add any addons that might possibly be setting the model itself? Are you sure DarkRP Modification is being loaded?
I've added Simple Prop Protection (SSP) recently.
Have you tried removing addons to see if they're conflicting?
I will try it soon.
Sorry, you need to Log In to post a reply to this thread.