Fist Posted May 4, 2017 Share Posted May 4, 2017 (edited) I created this for my own needs, but i thought that i gonna share with this depending on how simple this script is, but yet very cool and useful. This command handler will even work with any kind of chat unless source is not a player. You can change command line which triggers commands in shared.lua file You can add your own commands like this (very simple) -- shared addCustomCommandHandler(string command, function handlerFunction) -- export shared exports.RESOURCENAME:addCustomCommandHandler(string command, function handlerFunction) -- client !clientcommands <-- pre-built command to view client commands -- server !servercommands <-- pre-built command to view server commands resource download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14380 screenhot: Edited May 4, 2017 by Fist Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now