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:
- ---------------------------------------------------------------------------]]
- --[[---------------------------------------------------------------------------
- Define which team joining players spawn into and what team you change to if demoted
- ---------------------------------------------------------------------------]]
- GAMEMODE.DefaultTeam = TEAM_CITOYEN
- --[[---------------------------------------------------------------------------
- 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_MUNICIPAL] = true,
- [TEAM_CHIEF] = true,
- [TEAM_MAYOR] = true,
- }
- --[[---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------]]
- DarkRP.addHitmanTeam(TEAM_MOB)
- TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
- color = Color(5, 255, 0, 255),
- model = {
- "models/bloocobalt/citizens/female_01.mdl",
- "models/bloocobalt/citizens/female_01_b.mdl",
- "models/bloocobalt/citizens/female_02.mdl",
- "models/bloocobalt/citizens/male_04.mdl",
- "models/bloocobalt/citizens/male_03.mdl",
- "models/bloocobalt/citizens/male_08.mdl"
- },
- description = [[Vous ete un simple citoyen de cette ville.]],
- weapons = {"sphone", "weapon_drivelicense", "idcard", "weapon_adv_keys"},
- command = "Citoyen",
- max = 0,
- salary = 10,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Citoyen",
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(100)
- end
- })
- TEAM_MUNICIPAL = DarkRP.createJob("Policier", {
- color = Color(0, 35, 255, 255),
- model = {
- "models/player/police_agent/male_01_agent.mdl",
- "models/player/police_agent/male_03_agent.mdl",
- "models/player/police_agent/male_02_agent.mdl",
- "models/player/police_agent/male_04_agent.mdl",
- "models/player/police_agent/male_05_agent.mdl",
- "models/player/police_agent/male_07_agent.mdl",
- "models/player/police_agent/male_08_agent.mdl",
- "models/player/police_agent/male_09_agent.mdl"
- },
- description = [[Vous ete un policer de cette ville faite respecter les lois.]],
- weapons = {"realrbn_tazer", "vc_spikestrip_wep", "sphone", "weapon_drivelicense", "idcard", "weapon_adv_keys", "dradio", "speed_gun", "fas2_p226", "salute", "weapon_r_handcuffs"},
- command = "Police",
- max = 4,
- salary = 100,
- admin = 0,
- vote = true,
- hasLicense = true,
- candemote = false,
- category = "Gouvernement",
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(100)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "")
- end
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement