DarkRP:ModifyingDarkRP

From Official DarkRP Wiki
Revision as of 12:08, 5 October 2013 by Bo98 (talk | contribs) (Created page with "When modifying DarkRP, you should not edit any of the core files. '''Not even the config folder.''' You shouldn't edit DarkRP files because: * You won't be able to update anym...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

When modifying DarkRP, you should not edit any of the core files. Not even the config folder. You shouldn't edit DarkRP files because:

  • You won't be able to update anymore. Updates contain new features and bug fixes and problems often get solved in updates.
  • ANY problem you have with DarkRP will NOT be any of the developers' responsibility. All support is immediately dropped when you edit DarkRP files.
  • When GMod updates, things will break and, unless you know what exactly has changed, you won't know what to do.

However, you can still modify DarkRP in any way you wish through the DarkRP modification addon. May sound impossible but it isn't. It's very easy.

Using the DarkRP modification addon

First of all, download and install the DarkRP modification addon. You can download it from here: https://github.com/FPtje/darkrpmodification. Simply place this in your addons folder on your server and it is successfully installed.

Adding jobs, shipments, entities, vehicles, group chats, agendas, ammo and/or food

ALL of your custom jobs, shipments, entities, vehicles, group chats, agendas, ammo and food go in the files in the addon in the lua/darkrp_customthings folder. The file names are self-explanatory. The format for each is the same as DarkRP 2.4.3, but group chats and ammo call GAMEMODE rather than GM. You can see an example in each file.

Note: Don't just whack your shared.lua in jobs.lua. Copy the jobs from it to jobs.lua, the agendas to agendas.lua etc. Everything has its own file now.

Editing the default jobs, shipments, entities, vehicles, group chats, agendas, ammo and/or food

  1. Disable the DarkRP original ones in lua/darkrp_config/disabled_defaults.lua
  2. Copy the default jobs/shipments/entities/etc. to the addon in the appropriate file in lua/darkrp_customthings and edit away.


Config.lua, MySQL and no license weapons

Config.lua: In the DarkRP modification addon this is called settings.lua and is in the lua/darkrp_config folder.
MySQL and no license weapons: This is also in the lua/darkrp_config folder. The names are self-explanatory.

Modules

These simply go in the lua/darkrp_modules folder now.