DarkRP:Jobs

From GMod Wiki

Jump to: navigation, search
Deletion.pngThis page has been nominated for deletion. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. See more pages nominated for deletion here.
Reason for deletion: Not what Garry wants the wiki to be used for
Last Edit was made on 11/16/2011

The Layout

AddExtraTeam( "<NAME OF THE CLASS>", Color(<red>, <Green>, <blue>, 255), "<Player model>" , [[<the description(it can have enters)>]], { "<first extra weapon>","<second extra weapon>", etc...}, "<chat command to become it(WITHOUT THE /!)>", <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false Does this team have a gun license?, TEAM: Which team you need to be to become this team)

So here is an example of a S.W.A.T member;


TEAM_SWAT = AddExtraTeam("S.W.A.T", Color(0,0,153,255), "models/player/barney.mdl", [[Raid And Protect From Terrorists
]], {"weapon_deagle2", "weapon_mp52",  "weapon_pumpshotgun2"}, "swat", 3, 300, 0, true, true, {TEAM_POLICE})

The layout of the above job;

TEAM_SWAT = The Lua variable for this team. This is used for things such as buying shipments, buying weapons, and if you have to be a job to become this.

AddExtraTeam("S.W.A.T", = S.W.A.T is the job name displayed in the scoreboard and the bottom left hand corner.

Color(0,0,153,255), = This is the colour displayed in the scoreboard, and is done in RGB format. You can find the perfect colour using the in-game colour tool.

"models/player/barney.mdl", = The player model that you are when you spawn as this team. If the client does not have this model, then an ERROR will be displayed. As of revision 529, you can add multiple models for each job, when a player chooses their job from the F4 menu, a GUI will appear with all the possible models for that class. To add more than 1 model, you list the models in {}, seperated by commas, eg: {"models/player/barney.mdl","models/player/alyx.mdl"} NOTE: Making a multiple model job may not work for some people.

[[Raid And Protect From Terrorists]], = The description of the class which is shown in the F4 menu. Although this feature is rarely used, it is still helpful.

{"weapon_deagle2", "weapon_mp52", "weapon_pumpshotgun2"}, = The weapons this team spawns with. You must use the weapon's entity name or this will not work.

"swat", = The command to become this team. (Ensure that you exclude the forward slash (/) as DarkRP will do so automatically)

3, = How many people can be this team at one point in time?

300, = Their salary that they earn on payday.

0, = Who may become this team? (0 = anyone, 1 = admin, 2 = superadmin only)

true, = Do you have to be voted into this team? (false = no and true = yes)

true, = Does this team have a gun license? (false = no and true = yes)

{TEAM_POLICE}) = Which team or teams do you have to be in order to join this team?

Here are some custom jobs to help get you started

 
TEAM_MERCH = AddExtraTeam("Merchant", Color(055,135,10,255), "models/player/group01/male_04.mdl", [[Buy And Sell Stuff For A Living
Self Explained...]], {"weapon_bugbait"}, "merch", 2, 50, 0, false)
TEAM_BUILD = AddExtraTeam("Builder", Color(0,255,55,255), "models/player/alyx.mdl", [[Hire This Guy To Build A PRO Base!
]], {"weapon_bugbait"}, "build", 5, 50, 0, false)
 
 
 
TEAM_security = AddExtraTeam("Security", Color(50,0,150,255), "models/player/group03/male_02.mdl", [[You ARE The Backup...The Security...
YOU ARE EPIC]], {"weapon_m162"}, "sec", 3, 60, 0, false)
 
 
TEAM_tech = AddExtraTeam("Technician", Color(0,200,50,255), "models/player/barney.mdl", [[Sell Installations For PCMod With The Install Disk.]], {"pcmod_installdisk"}, "technician", 1, 50, 0, false)
 
 
TEAM_bar = AddExtraTeam("Bartender", Color(200,30,0,255), "models/player/classic.mdl", [[Buy A Beer Rack And Sell Some Beer.(Leagal)
]], {"weapon_bugbait"}, "bartender", 2, 50, 0, false)
 
TEAM_DRUG = AddExtraTeam("Drug Baron", Color(50,0,150,255), "models/player/arctic.mdl", [[Sell Drugs
]], {}, "drugbaron", 10, 100, 2, false)
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox