How do I decrease the cooldown on Stungun?

I want to decrease the cooldown between shots on the Stungun. Is this possible via a script? If so, how would I do it?
I saw somewhere I may have to change something called weapons.meta, but I really don’t want to as I have no idea what I’d put in it just so it changes the Stungun (without adding every other weapon’s stats in there, preventing it from being nice and tidy)

I said “cooldown between shots”. This controls how long they are on the floor for.

this also controls between shots (at least in my experience) [ Okay I lied it felt like a lot longer)

I just went through the meta file and you can find and change these values on
lines
8623 - 8628 (and you were correct it is in the weapons.meta

So how do I extract weapons.meta?

the only way I know of doing is it using OpenIV the directory can be used here:
common.rpf/data/ai/

Then I can shove that into a folder called ‘stream’ or something, right?

yes but I’m also trying to find you an alternative just in case it doesn’t work again JUST IN CASE

No, you don’t “stream” metadata files, you mount them. You stream props, maps, drawables. Metadata files have to be declared and mounted inside the fxmanifest.lua file.

Ah ok. Thanks! Is there documentation for fxmanifest.lua?

https://docs.fivem.net/docs/scripting-reference/resource-manifest/resource-manifest/
https://docs.fivem.net/docs/game-references/data-files/

After a quick search…

files {
    'weapons.meta'
}

data_file 'WEAPONINFO_FILE' 'weapons.meta'

I’ll modify the files and see if I can accomplish what I wanted to do

I found this in the natives docs, but couldn’t find a set method.

This worked! But now I have an issue… I have 2 Stun Guns in my Weapon Wheel (both do the same).
My combat pistol shows up twice too… I think it’s because the game is loading it’s own weapons.meta and the server’s one so it’s making weapons twice?
Ok it’s duplicating all my weapons. My theory was correct. I’m trying to figure out how to fix it.

Fixed it!

files {
    'weapons.meta'
}

data_file 'WEAPONINFO_FILE_PATCH' 'weapons.meta'