Jump to content

How do I create a script that gives a kit of weapons?


Kyllix

Recommended Posts

Posted

Hello guys I need help to create a script for a kit of weapons you know how to do? I would like with a command gives me the kit of weapons for example I do / kit and gives me weapons if you know you tell me please!

  • Moderators
Posted (edited)
-- SERVER SIDE SCRIPT
addCommandHandler("kit", function(player)
	giveWeapon(player, 30, 1000) -- M4 with 1000 ammo
    -- example: giveWeapon(player, WEAPONID, AMMO)
end)

Here you can find the weapon ids: https://wiki.multitheftauto.com/wiki/Weapons

Edited by Patrick2562
Posted

Oh thank you but I would have another problem with my server, I will put 1,000,000,000 of projectiles on your script and not give them endless help!

Posted (edited)
3 minutes ago, Dimos7 said:

for infinty ammo need put at 3rd argument 99999

Dont work!

Ok I solved thanks the same

15 minutes ago, Dimos7 said:

for infinty ammo need put at 3rd argument 99999

 

Edited by Kyllix

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