Home
Home
Register
Login

Resources
Forum






rssCustom Command Handler (custom_command_handler)

Category:script
Author:kaasislv
Downloads:46
Rate:You need to be logged in to vote
Rating:3 (2 Votes)
Description:
I was creating this for my own needs, but thought it's pretty cool feature that's why i wanted to share it with people with this. :D

This resource will add custom command handlers, like default MTA's built-in which are with '/' but with this you'll be able to add any type of command triggerer (default is '!')

UPDATE 1.0.2
Completly changed the way command adding was.

Now you can add commands like this (way better than it used to be)
-- 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

Comments (1) | Download latest version | Report

Version history

Version Publish Date Changes
2.0.2 2017-05-05 18:35:39 code clean up Download
2.0.1 2017-05-04 06:43:16 ... Download
2.0.0 2017-05-04 06:40:04 hotfix :D Download
1.0.2 2017-05-04 06:32:27 now works both sides, client and server. Also changed the way you add commands. Download
1.0.1 2017-05-04 04:36:25 fixed 1 + added new example. Download
1.0.0 2017-05-04 04:16:34 First public release Download