12p Posted January 31, 2011 Share Posted January 31, 2011 I have tried to find that function (getWeaponAmmo) but the only I did can find are these: getPedAmmoInClip getPedTotalAmmo setWeaponAmmo takeWeaponAmmo giveWeaponAmmo So, how can I get all ammo in a specified weapon? getPedTotalAmmo retrieves ALL WEAPONS' ammo so it doesn't help me. PS: To be more specific, I want to retrieve "clip + non-clip" weapon's ammo. Link to comment
SDK Posted January 31, 2011 Share Posted January 31, 2011 I think you're wrong about that https://wiki.multitheftauto.com/wiki/GetPedTotalAmmo This function returns an integer that contains the total ammo in a specified ped's weapon. int getPedTotalAmmo ( ped thePed, [ int weaponSlot = current ] ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now