Jump to content

Does not work command


#meow

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
});

 

Link to comment
Share on other sites

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