Jump to content

bokys96

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by bokys96

  1. Hello guys, a really simple problem from my side. I have tried this function from tutorial and I can't get it to print on the console:

     

    mp.events.addCommand('testCmd', (player, text, arg, arg1) => {
        console.log(`text: ${text}`);
        console.log(`arg: ${arg}`);
        console.log(`arg1: ${arg1}`);
    })

    What I do is I go to the game and write "/testCmd This is test"

    From what I understand, this should show the output on my server console.

    I'd ask on discord but somehow after accepting the rules I don't get the access to channels, maybe bot is down?

×
×
  • Create New...