It's possible to make?

I’m making a little mod for my rust server but i’m trapped in one part, i need give a weapon to a specific player but with mods.

For example give a 9mm Pistol with 3 mod slots and one of this slots with a flashlight mod.

It’s possible this?

I think weapon slots are random. ATM I don’t think there is a way to give a weapon with a certain amount of slots on it.

yes this is possible.

Please can you help me with that?

If anything there should be an id for every type of weapon with each type of mod slot with any combination of attachments.The only problem finding the id for the gun with 3 mod slots and a flashlight attachment.