gtav-ent/GTAV-EnhancedNativeTrainer

Weapon damage modifier: save to database

Closed this issue · 1 comments

It's been a while since I did any database work, and I'm trying to get familiar with how the trainer saves values to the db. So far I'm seeing that only bool toggles are being saved.

Is there a way to save int weapDmgModIndex, in weapons.cpp, into the db and have it reapplied upon trainer startup?

Yes, look for 'generic' in various feature files. For example slow motion in the time code, or the alpha index in props. This loads and saves string pairs, and in both of those cases converts to/from ints.