Hi there, I’ve run into an issue I don’t know where to continue from. I’m currently attempting to edit weapon values (weapons from a workshop addon - the weapons are not my own creation) for a gamemode I’m creating. The gamemode provides weapon information when a weapon is equipped (via weapons.Get), but so far, editing the weapon (via weapons.GetStored - not weapons.Get ), only seems to result in changing the values within the current server environment. This does not affect the values returned by weapons.Get and I need them to.
From here, I see I have 2 options available:
- Instead of editing the weapon via inside the gamemode and using weapons.GetStored, I can just edit the weapon file itself
- Figure out a way to overwrite the weapon’s code so that the values I assign in the gamemode are saved into the weapon’s file permanently
I would like to avoid option 1 at all costs, as going through some 40 weapons (+ more in the future if I decide more) takes a whooooole lot of time and makes updating the weapon pack (which updates quite often) a huge pain in the ass. But with that being said, I have no clue how to go about option 2, or if it’s even possible to in the first place.
Any help would be appreciated.