This needs to be.
&val means you are storing the value by reference into a normal variable not a variable pointer.
You can also set the state of GTA V in its appmanifest to the "already updated" state.
This is what I was missing. Thanks.
Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.