Skip to content

Setup Guide

FiveReborn edited this page Dec 28, 2016 · 8 revisions

Setup Guide:

Setting up the command processor is pretty simple. All you do once you download or clone the repository is extract the contents of (FiveReborn_CMD_Processor-master\resources\your-custom-resource) into the resource folder where you want to utilize the command processor. FiveRebornServerFolder\resources\your-custom-resource-folder-name\. For example mine could be FiveRebornServerFolder\resources\fivem-map-skater\.

You will see something like the following once you open the zip file and go into your-custom-resource directory:

The command processor will replace your chat resource in resources\[system]\chat so make sure you back up anything you may fear losing before replacing. This command processor no longer replaces the chat resource.

#Resource file:

In your main resource file (named __resource.lua) inside your custom server resource folder add server/server_commands.lua and client/client_commands.lua to the list so the lua scripts get loaded upon server startup. Also make sure the server folder path matches the one on the list, otherwise the script won't load. Refer to setup guide before doing this step.

#Ready to go!

That's pretty much it, you should be able to write commands now, check the wiki (Implementing Commands) for information on how to do that.

Clone this wiki locally