RPCC/Example/CommandPackExample

= Command Pack Example =

Command Packs are a easy way to share a range of commands.

Creating A Command Pack
To create a command pack make a file with in roplaychatcommand-main/lua/rpcc/server/commandpacks/{filename}.lua

The File Name will be use as the name of the Command Pack

Add the following to the file;

local Commands = {}

// Put commands here

// Do not Put anything below this line return Commands

To add a Command follow [Command Example](commandexample.md) and replace config.Commands[Name] = { with Commands[Name] = {

Enabling A Command Pack
To enable a Command Pack goto roplaychatcommand-main/lua/rpcc/rpcc_config.lua and open it.

Find config.CommanPacks inside the file

After that Put the ["CommandPack Name"] = true, to enable it or ["CommandPack Name"] = false, to disable it, inside of config.CommandPacks