justalemon / PlayerCompanion

Mod for GTA V that adds some extra features for Addon Peds and the Player Characters
MIT License
12 stars 1 forks source link

Combat shotgun (And probably other cayo perico weapons) don't save. #13

Closed thalilmythos closed 2 years ago

justalemon commented 3 years ago

This happens because PlayerCompanion uses the SHVDN enum to get the list of weapons, but it has not been updated with the new weapon hashes from The Cayo Perico Heist.

justalemon commented 3 years ago

Ill probably ask for some memory editing help on the 5mods server to get the weapon hashes directly from the game's memory during runtime.

WithLithum commented 3 years ago

RPH has a feature which you can get a collection of all weapons, just call ToList and then you can enumerate those, i think.

justalemon commented 3 years ago

Yes, but PlayerCompanion does not runs on RPH only on SHVDN.

justalemon commented 2 years ago

Looks like I forgot that I implemented this in fb9c95d743450f7d6bdf8ad227cdb43df4c93d61, whops!