Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[---------------------------------------------------------------------------
- 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 your custom jobs under the following line:
- ---------------------------------------------------------------------------]]
- DarkRP.createJob("Marine", {
- color = Color(255, 0, 0, 255),
- model = {"models/player/usmc1player.mdl"},
- description = [[The marines]],
- weapons = {"fas2_m4a1", "fas2_p226", "fas2_m67"},
- command = "marinesoldier",
- max = 10,
- salary = 200,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Marines",
- ammo = {
- ["fas2_ammo_556x45"] = 500,
- ["fas2_ammo_357sig"] = 500
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(10)
- end,
- customCheck = function(ply) return CLIENT or
- table.HasValue({}, ply:Team())
- end,
- CustomCheckFailMsg = "",
- })
- DarkRP.createJob("Marine Medic", {
- color = Color(255, 0, 0, 255),
- model = {"models/player/usmc_goggle3npc.mdl"},
- description = [[The marine's medic]],
- weapons = {"fas2_m4a1", "fas2_p226", "fas2_ifak"},
- command = "marinemedic",
- max = 0,
- salary = 250,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Marines",
- ammo = {
- ["fas2_ammo_556x45"] = 500,
- ["fas2_ammo_357sig"] = 500,
- ["fas2_ammo_medical"] = 50
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(50)
- end,
- customCheck = function(ply) return CLIENT or
- table.HasValue({}, ply:Team())
- end,
- CustomCheckFailMsg = "",
- })
- DarkRP.createJob("Marine Sniper", {
- color = Color(255, 0, 0, 255),
- model = {"models/mw2/skin_09/mw2_soldier_06.mdl"},
- description = [[The marine's sniper]],
- weapons = {"fas2_deagle", "fas2_m82", "fas2_g36c"},
- command = "marinesniper",
- max = 2,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Marines",
- ammo = {
- ["fas2_ammo_50bmg"] = 500,
- ["fas2_ammo_50ae"] = 500,
- ["fas2_ammo_556x45"] = 500
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(55)
- end,
- customCheck = function(ply) return CLIENT or
- end,
- CustomCheckFailMsg = "",
- })
- DarkRP.createJob("Marine Heavy", {
- color = Color(255, 0, 0, 255),
- model = {"models/player/usmc_auto3player.mdl"},
- description = [[The marine's heavy]],
- weapons = {"fas2_deagle", "fas2_m79", "fas2_m3s90", "fas2_m67", "fas2_m60e3"},
- command = "marineheavy",
- max = 2,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Marines",
- ammo = {
- ["fas2_ammo_50ae"] = 500,
- ["fas2_ammo_12gauge"] = 500,
- ["fas2_ammo_40mm"] = 5,
- ["fas2_ammo_m67"] = 5,
- ["fas2_ammo_762x51"] = 500
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(55)
- end,
- customCheck = function(ply) return CLIENT or
- table.HasValue({}, ply:Team())
- end,
- CustomCheckFailMsg = "",
- })
- DarkRP.createJob("Marine Officer", {
- color = Color(255, 0, 0, 255),
- model = {"models/player/spfrc_gogglesplayer.mdl"},
- description = [[The marine's Officer]],
- weapons = {"fas2_deagle", "fas2_m79", "fas2_m3s90", "fas2_m67", "fas2_m60e3", "fas2_ifak"},
- command = "marineofficer",
- max = 2,
- salary = 1000,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Marines",
- ammo = {
- ["fas2_ammo_50ae"] = 500,
- ["fas2_ammo_12gauge"] = 500,
- ["fas2_ammo_40mm"] = 5,
- ["fas2_ammo_m67"] = 5,
- ["fas2_ammo_762x51"] = 500,
- ["fas2_ammo_medical"] = 10
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(100)
- end,
- customCheck = function(ply) return CLIENT or
- table.HasValue({}, ply:Team())
- end,
- CustomCheckFailMsg = "",
- })
- DarkRP.createJob("Army Infantry", {
- color = Color(75, 125, 26, 255),
- model = {"models/codmw2/codmw2h.mdl"},
- description = [[Basic Unit of the US Army.]],
- weapons = {"fas2_glock20", "fas2_m16a2"},
- command = "armysoldier",
- max = 0,
- salary = 100,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Army",
- ammo = {
- ["rifle"] = 500
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- end
- })
- DarkRP.createJob("Army Medic", {
- color = Color(75, 125, 26, 255),
- model = {"models/codmw2/codmw2he.mdl"},
- description = [[Medical Unit of the US Army.]],
- weapons = {"fas2_glock20", "fas2_m16a2", "fas2_ifak"},
- command = "armymedic",
- max = 0,
- salary = 116,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Army",
- ammo = {
- ["fas2_ammo_556x45"] = 500,
- ["fas2_ammo_10x25"] = 0,
- ["fas2_ammo_bandages"] = 0,
- ["fas2_ammo_hemostats"] = 0,
- ["fas2_ammo_medical"] = 0,
- ["fas2_ammo_quikclots"] = 0
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(10)
- end
- })
- --[[---------------------------------------------------------------------------
- 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] = false,
- [TEAM_CHIEF] = false,
- [TEAM_MAYOR] = false,
- }
- --[[---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------]]
- DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement