GamerDeMTA Posted July 19, 2013 Share Posted July 19, 2013 Hi, I want to do this: *A script which check if you have more than 5 GRENADES, and if you have more than 5 Grenades, it set it to only 1 grenade. Link to comment
Jaysds1 Posted July 19, 2013 Share Posted July 19, 2013 Use: getPedWeapon -- get's the ped's weapon getPedTotalAmmo --get's the ped's weapon total ammo setWeaponAmmo --set's the ped's weapon ammo Link to comment
GamerDeMTA Posted July 19, 2013 Author Share Posted July 19, 2013 but getPedWeapon is by slot and i want only 1 weapon not all of slot, isnt possible with ID? Link to comment
Moderators IIYAMA Posted July 19, 2013 Moderators Share Posted July 19, 2013 this would do it. getPedWeapon ( ped, getSlotFromWeapon ( weaponid ) ) 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