Hi,
I'm fairly new to modding in general, but I've followed a few tutorials successfully and now I have some questions. I was trying to use the SET_PED_AMMO native function but when I went to put in the weapon hash it gives me the error: cannot convert from 'RDR2.WeaponHash' to 'RDR2.Native.InputArgument'.
I tried constructing an InputArgument using this code, but it crashed my game:
var hash = new RDR2.Native.InputArgument(CurrentPlayerWeapon()); //CurrentPlayerWeapon() returns the hash of the weapon currently equipped
Function.Call(Hash.SET_PED_AMMO, Game.Player.Character.Handle, hash, 100);
If there's better documentation than what little I found, or if there's any other way to do this then do let me know.