Cheif Tiger's In-Game DarkRP Class Maker
This class maker makes it a breeze to make classes for DarkRP, whether it be helping coders to get
them done without small bugs (such as missing a comma), or people who don’t understand LUA in the
least being able to create their own custom classes without help. That’s what I aimed for on this
project, and it’s my first major release.
** UPDATED V1.4!**
v1.3 - 1.4
[ADDED] - Custom model entry on the model selector
[ADDED] - Fix for those people who put “/” at the beginning of their command
[ADDED] - Drop down menu for the ability to pick what team you must be before you can become the class
[ADDED] - Class clearing button
[ADDED] - Changelog and Readme to download (hopefully this will help a lot of you with problems)
v1.2 - 1.3
[ADDED] - View classes button (for those of you who can’t find the txt file)
[FIXED] - Command error
v1.1 - 1.2
[FIXED] - Error on line 446 (Max Players)
v1.0 - 1.1
[FIXED] - If you forgot anything, it automatically fills it so no errors.
[FIXED] - if you didn’t put things in correct text boxes ( e.g. BLARG for Salary ) then it changes it to a default value.
To open the menu, just type “classmaker” in your console.
Here are some pics of the interface:
This is a picture of me beginning to make a Breen class. The interface is pretty self-explanatory.
I am currently about to enter the model viewer in this picture.
The rest of the pics are me finishing up the class.
This one is the model viewer. What’s cool about this class maker is that it can be added to a game server and if a player is super admin or above then they can create classes while on the server! Now for the best part; all of the models and weapons are called from the server using datastream, that way you don’t make a class with stuff the server doesn’t have!
IMPORTANT NOTE: Some of the models are animations and shared models, as well as counter-strike models (ct_ and t_ prefixes). DO NOT USE THESE. I attemepted to remove them from the model finder, but I did to no avail. Just be careful when selecting models.
You can also get your own model directory and input it into the text area at the bottom. This if for people who have player models that are not in the normal directory (or for those wanting to make a class a barrel, or whatever).
This one is the weapon selector. As I mentioned earlier, the weapons are called from the server. It gets all the weapons from the darkrp gamemode weapons folder as well as every weapons folder in every addon on the server! (As you can see I don’t have many as I am using Garry’s mod Beta; built for fretta)
The weapon selector is pretty easy to understand; select something, press the corresponding arrow, it moves over. Weapons on the right side are weapons that will be added to the class.
Now that everything is filled in, I will hit the very large, overly exaggerated generate button
Finally, the file is generated in your garrysmod/data directory and it is named “darkrpclassmaker.txt.” You can also view the generated classes with the button built into the class maker as seen in this screenshot:
As you can see, my Breen class was succesfully generated. Before that class I had generated an example class (the class that is generated when you don’t fill anything in and just hit “Generate”). You can have as many classes as you wish generated inside of this file, but if you wish to empty them out, you can hit the simple “Clear Classes” button, and you’ll have a fresh and empty text file.
This class maker does NOT automatically put the classes into your gamemode. You have to stick them in the shared.lua yourself. There is a tutorial on the readme included with the download on how to do this.
NOTE: For those of you who change your darkrp folder to a different name, you will need to edit the cl_classmaker.lua file at the top. Instructions are in the LUA file.
Well post comments and let me know if anything needs improved/added!