#meow

Does not work command

Recommended Posts

Hello, my server commands do not work

Any added commands do not work, the server does not respond

Code packages> index.js

require('./give_weapon.js');

Code packages > give_wea pon.js

mp.events.addCommand('weapon_firework', (player) =>  {
    player.giveWeapon(0x7F7497E5, 1000); // Firework Launcher
});

mp.events.addCommand('weapon_rifle', (player) =>  {
	player.giveWeapon([0x83BF0278, 0xBFEFFF6D], 1000); // Assault Rifle, Carbine Rifle
});

 

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.


  • Recently Browsing   0 members

    No registered users viewing this page.