Jump to content

[HELP] "/help" addCommandHandler doesn't work


Recommended Posts

Hello guys,
I'd love to add something to my script, like when we write /help it appears a message on chat with some informations. I've been searching but can't find any help.

I have tried this code, but sadly it doesn't work: 

function helpScript()
    outputChatBox("test",255,255,255,true)
end
addCommandHandler("help",helpScript)


Thanks in advance!

Edited by foxxrage
Link to post
  • Moderators

Hi, and welcome on Forum!

Your code looks correct and should work on client side.

But.. probably the help command name is already in use, it's a hardcoded MTA command. Try to use something else.

  • Like 1
Link to post
  • Patrick changed the title to [HELP] "/help" addCommandHandler doesn't work
5 minutes ago, Patrick said:

Hi, and welcome on Forum!

Your code looks correct and should work on client side.

But.. probably the help command name is already in use, it's a hardcoded MTA command. Try to use something else.

Hello and thanks for this warm welcome.

Omg yes, I used a different command now, and it worked! Thanks bro!

Link to post
  • Moderators
Just now, foxxrage said:

Hello and thanks for this warm welcome.

Omg yes, I used a different command now, and it worked! Thanks bro!

Welcome

  • Like 1
Link to post

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