Jump to content

Command in all Writting Forms


Tockra

Recommended Posts

Posted

Hello Guys,

how can i create a command, which is evers triggered, when its written, egal if it is big written or small or else...

example:

/test

/TEST

/teSt

..

They should all be usable, but i want not add lots of Command Handlers with all Variants...

h32yhix1ossu.png
Posted

If you look at the wiki https://wiki.multitheftauto.com/wiki/AddCommandHandler

You will notice that addCommandHandler has optional parameters.. Check out the last one which is caseSensitive. If you disable it, you will be able to use 1 command with different variations (/tEsT will work the same as /TEST, etc.).

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...