Jump to content

[Release] Custom Command Handler


Fist

Recommended Posts

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:

22477.png

Edited by Fist
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...