Jump to content

Recommended Posts

Posted

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?

  • Xabi locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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