[ESX] MSK WeaponAmmo | Clips, Components & Tints

The script works fine so far. The only thing I noticed immediately is that the attachment_remover item is also used although you did not have the attachment on the weapon.

Would be great if there was a query built in, so that the item is not wasted unnecessarily.

Thanks for the feedback. I’ll take a look.

Update v6.2

  • Fixed Item attachment_remover. The item is no longer deleted if no component has been removed.
1 Like

Update v6.3

  • Added a Check if Component can attached to the Weapon
  • Fixed some minor Bugs

Thanks to @gpScripts for helping me with that.
Check him out! https://gp-resources.tebex.io/

1 Like

[ script:esx_armor] SCRIPT ERROR: @esx_armor/server.lua:36: attempt to index a nil value (local ‘xPlayer’)

1 Like

That have nothing to do with the weaponammo Script.

when we spawn ammo is empty… can i avoid this ?

Update v7.0

  • Added Hotkey for using an Clip Item
  • Added AntiWeaponPunch (Antiwaffenschlag)

I need to save ammunition from a weapon but I always get an error

  • [script: weaponammo] SCRIPT ERROR: @ weaponammo / server.lua: 417: attempt to call a nil value (field ‘SavePlayer’)

I know the config is to disable player saving, but if I do, it doesn’t store the charges I need. Any help?

Set it to false and then wait a few minutes. ESX saves the player automatically after a certain time.

but here’s the problem that players can bug it.

Update v7.1

  • Added Animation and ProgressBar after Weapon Reload

Anyone make this work for 1.1 ?

edit : i really love this script but my server use 1.1 base if anyone can make this work for 1.1
will be great :grin:

image

edit2 : i change “AddWeaponAmmo” to “addWeapon” and now it work !!

I can apply a supressor 2 times on a weapon and it will remove 2 times the supressor. Is there a way to check if there is already a supressor on the weapon?

I can have a look at this :slight_smile:

Did you already had time to fix this issue?

Update v7.2

  • You can change the esx:getShardedObject Event yourself in config.lua

what was the point of making a paid script if it only costs $1… like ur script man but just so pointless

If you want to pay more just do it. You can pay as much as you want.

Update v7.3

  • Fixed that you can’t use a component if it’s already attached to the weapon