Sign in to follow this  
MyKy4

Error Command not found

Recommended Posts

Hi 

i have added command to server "/money" that shows in chat how much money u have.

It works and showing amount of money i have but also it's showing Error command not found 

Maybe some one had same issue? if some one can help it would be greate

Share this post


Link to post
Share on other sites
8 минут назад, robearded сказал:

Post your code if you want to get help.

mp.events.addCommand('money', player => {
console.log(JSON.stringify(player, null, 2));
player.outputChatBox(`You have ${player.money}$.`);
});

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.