Code: Select all
/*---------------------------------------------------------------------------
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_SAMURAI = AddExtraTeam("Samurai (SuperAdmin)", Color(0, 153, 255, 255), "models/jessev92/player/misc/chuck-norris_hat.mdl", [[I want to Kick ass, But I never had any gum]], {"models/weapons/v_crossbow.mdl"}, "samurai", 1, 30000000, 1, false, true, false)
TEAM_Special = DarkRP.createJob("Special Gun Dealer", {
color = Color(153, 255, 255, 255),
model = {"models/player/odessa.mdl"},
description = [[ Sell guns the regular gun dealers have to help support you and your gangor just do it for fun.
And maybe gain a little of profit!]],
weapons = {""},
command = "Special",
max = 1,
salary = 69,
admin = 0,
vote = vote,
hasLicense = false,
NeedToChangeFrom = TEAM_CITIZEN,
customCheck = function(ply) return ply:getDarkRPVar("money") > 10000 end,
CustomCheckFailMsg = "You don't have enough money! You old hag!",
modelScale = 1.2,
maxpocket = 20,
maps = {"rp_downtown_v2", "gm_construct"},
candemote = true,
}
TEAM_BlackMarket = DarkRP.createJob("Black Market Dealer", {
color = Color(153, 255, 255, 255),
model = {"models/player/odessa.mdl"},
description = [[ Sell Keypad crackers, medkits, lockpicks & more! Just make sure .
And maybe gain a little of profit!]],
weapons = {""},
command = "BlackMarket",
max = 1,
salary = 69,
admin = 0,
vote = vote,
hasLicense = false,
NeedToChangeFrom = TEAM_CITIZEN,
customCheck = function(ply) return ply:getDarkRPVar("money") > 10000 end,
CustomCheckFailMsg = "You don't have enough money! You old hag!",
modelScale = 1.2,
maxpocket = 20,
maps = {"rp_downtown_v2", "gm_construct"},
candemote = true,
}
TEAM_Thief = DarkRP.createJob("Thief", {
color = Color(0, 0, , 255),
model = {"models/player/group01/male_03.mdl"},
description = [[ Your a thief! You can raid & mug other citizens every 5 minutes! But first make sure you advert raid!
And maybe gain a little of profit!]],
weapons = {"lockpick"},
command = "Thief",
max = 6,
salary = 55,
admin = 0,
vote = vote,
hasLicense = false,
NeedToChangeFrom = TEAM_CITIZEN,
customCheck = function(ply) return ply:getDarkRPVar("money") > 10000 end,
CustomCheckFailMsg = "You don't have enough money! GO MUG SOMEBODY!",
modelScale = 1.2,
maxpocket = 20,
maps = {"rp_downtown_v2", "gm_construct"},
candemote = false,
}
/*---------------------------------------------------------------------------
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_MOB)