Chat commands - XxLMM13xXgaming/drp GitHub Wiki
To add a chat command this is what you need to do...
Getting started
First off you will need to set up a file in the autorun (server)
addonname/lua/autorun/sv_filename.lua
you will need to use this format..
DRPChatCommands.command = {[function](/XxLMM13xXgaming/drp/wiki/function), ""}
To change the command you will need to change .command to your command! (.help for example)
Now this has some pretty cool features for the function arg! You can call {DRP_User}
to call the user that is saying the command and {DRP_Text}
to call the full text! The next arg is just what the command will return... leave "" for nothing to return in chat! This {DRP_User} and {DRP_Text}