I need some help making classes for Dark RP
1. what is the file that you use to actually give the class the weapon
2. how do you give a class multiple weapons
3. how do you set their avatar
4. I need a good program that can create LUA files, or could i just use Notepad and change extension to .lua
[QUOTE=napalm42;16644492]I need some help making classes for Dark RP
1. what is the file that you use to actually give the class the weapon
2. how do you give a class multiple weapons
3. how do you set their avatar
4. I need a good program that can create LUA files, or could i just use Notepad and change extension to .lua[/QUOTE]
Go into your DarkRP/gamemode folder and open shared.lua. It tells you how to make a new class and set the weapons etc. I'm not sure what you mean by avatars for a class. If you mean model then thats in there too. As is the colour of the Job.
thank ya mych
I dont know if you got anything out of that, so I reply too;
Go to Gamemodes/DarkRP/Gamemode/Shared.lua.
Open shared.lua - you'll see om text and an example of a job.
There's a job code generator, where you fill in stuff, and it generates the lua code.
Link: [url]http://www.garrysmod.org/downloads/?a=view&id=63379[/url]
When you're done, press "Save As... " and name it "shared.lua" and put it in your deskopt.
Then drag it into the directory again and press overwrite. Simple as that.
--------------------------------------------------------
HOW TO MAKE AN EXTRA CLASS!!!!
--------------------------------------------------------
You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you're doing!!!
Ok here's how:
To make an extra class do this:
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)
The real example is here: it's the Hobo: */
--VAR without /!!! The name the color(what you see in tab) the player model The description
TEAM_HOBO = AddExtraTeam("Hobo", Color(80, 45, 0, 255), "models/player/corpse1.mdl", [[The lowest member of society. All people see you laugh.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or
outside someone else's door]], {"weapon_bugbait"}, "hobo", 5, 0, 0, false)
This guide in the darkrp thread helped me, [url]http://www.facepunch.com/showpost.php?p=15467722&postcount=99[/url]
Sorry, you need to Log In to post a reply to this thread.