Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dossier categories.lua
- DarkRP.createCategory{
- name = "Cadet",
- categorises = "jobs",
- startExpanded = true,
- color = Color(115,117,122,255),
- canSee = function(ply) return true end,
- sortOrder = 100,
- }
- DarkRP.createCategory{
- name = "CloneTrooper"
- categorises = "jobs",
- startExpanded = true
- color = Color(115,117,122,255),
- canSee = function(ply) return true end,
- sortOrder = 100,
- }
- Dossier jobs.lua
- 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:
- ---------------------------------------------------------------------------]]
- TEAM_CADET = DarkRP.createJob("Cadet", {
- color = Color(115, 117, 122, 255),
- model = {
- "models/cadet_debut/cadet_debut.mdl"
- },
- description = [[Vous êtes un clone en formation, un bleu. .]],
- weapons = {"weapon_fists","russe_pass","stalker_gas_mask_sunrise","keys","weapon_physcannon","gmod_tool"},
- command = "survivant",
- max = 32,
- salary = 0,
- vote = false,
- hasLicense = false,
- category = "Cadet",
- candemote = false,
- PlayerLoadout = function(ply) ply:SetArmor( 0 ) end,
- customCheck = function(ply) return CLIENT or
- table.HasValue({"VIP","user","LEADER","admin","superadmin","AdminTest"}, ply:GetNWString("usergroup"))
- end,
- })
- ---------------------------------------------------------------------------]]
- TEAM_Clone = DarkRP.createJob("CloneTrooper", {
- color = Color(115, 117, 122, 255),
- model = {
- "models/player/worthy/phase_1/91st/bf2_p1_trooper.mdl",
- "models/reizer_cgi_p2/clone_snow/clone_snow.mdl"
- },
- description = [[Vous êtes un clone trooper sans spécialisation, vous servez la république.]],
- weapons = {"weapon_fists","russe_pass","stalker_gas_mask_sunrise","keys","weapon_physcannon","gmod_tool"},
- command = "CloneTrooper",
- max = 32,
- salary = 20,
- vote = false,
- hasLicense = false,
- modelScale = 1.2,
- category = "Survivant",
- candemote = false,
- PlayerLoadout = function(ply) ply:SetArmor( 0 ) end,
- PlayerLoadout = function(ply) ply:SetArmor( math.Clamp( ( ply:Armor() or 100 ) + 0, 0, 0 ) ) end,
- PlayerSpawn = function(ply)
- GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1.0, GAMEMODE.Config.runspeed * 1.0)
- ply:SetHealth(100)
- end,
- customCheck = function(ply) return CLIENT or
- table.HasValue({"VIP","admin","LEADER","user","superadmin","AdminTest"}, ply:GetNWString("usergroup"))
- end,
- CustomCheckFailMsg = "Metier FULL",
- PlayerDeath = function(ply, weapon, killer)
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- 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] = true,
- [TEAM_CHIEF] = true,
- [TEAM_MAYOR] = true,
- }
- --[[---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------]]
- DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement