[url]http://pastebin.com/DcDM1bMQ[/url]
This is the setup for it in Jobs.lua and setup in disabled defaults.lua
Please read this to yourself over and over again until you figure out whats wrong... :nope:
[code]
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(255, 89, 0, 255),
model = {"models/fearless/wsuit15.mdl"},
description = [[You're a hitman. Acquire hits and ensure nobody is left alive.]],
weapons = {"m9k_colt1911"},
command = "hitman",
max = 1,
salary = 30,
admin = 0,
vote = true,
hasLicense = false,
category = "Criminals",
})
--[[---------------------------------------------------------------------------
Jobs that are hitmen
set to true to disable
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["hitmen"] = {
["mobboss"] = true,
}
[/code]
I've been doing that... that's why I came here
[EDIT] I was incorrect.
[QUOTE=Fire300;51036159]I've been doing that... that's why I came here[/QUOTE]
You are not setting the "Hitman" job as a Hitman
So I need to add it in disabled defaults?
I'm sorry but if you can't use your eyes to read and solve this simple error, you shouldn't be running/developing a server. Anyways, I'm not going to give you the completely coded answer because smithy285 already told you what to do...
Please read the following code where the arrows are pointing:
[code]
--[[---------------------------------------------------------------------------
Jobs that are hitmen <-------------
set to true to disable <-------------
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["hitmen"] = {
["mobboss"] = true,
["Hitman"] = (You should be able to get it now),
}
[/code]
First off (FPtje) Atheos has said adding that to disabled defaults is nonsense on this thread... [url]http://forum.darkrp.com/threads/custom-hitman.1165/[/url] and despite doing that ["Hitman"] = false, still fails to work so thanks for the help I guess?
[QUOTE=Fire300;51040743]First off (FPtje) Atheos has said adding that to disabled defaults is nonsense on this thread... [url]http://forum.darkrp.com/threads/custom-hitman.1165/[/url] and despite doing that ["Hitman"] = false, still fails to work so thanks for the help I guess?[/QUOTE]
Well, try this:
[code]
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(255, 89, 0, 255),
model = {"models/fearless/wsuit15.mdl"},
description = [[You're a hitman. Acquire hits and ensure nobody
is left alive.]],
weapons = {m9k_colt1911},
command = "hitman",
max = 1,
salary = 30,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Criminals",
})
DarkRP.addHitmanTeam(TEAM_HITMAN)
[/code]
Also, make sure you're putting this in [code]garrysmod\addons\darkrpmodification\lua\darkrp_customthings\jobs.lua[/code] If you don't have this click [URL="https://github.com/FPtje/darkrpmodification/"]here[/URL].
Sorry, you need to Log In to post a reply to this thread.