Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
ZZEZ

Removing loaded magazine from weapon

Recommended Posts

I need a way to remove the currently loaded magazine from a weapon, whenever I use removeMagazine with forEach it only removes magazines that are in the uniform/vest/backpack, if I use removeMagazine "Classname" when only the loaded magazine is present it doesn't remove it, any ideas how I can remove the loaded magazine?

Share this post


Link to post
Share on other sites

Well, after you remove all his magazines you can do this

player setAmmo [primaryWeapon player, 0];

That will remove all the bullets in the loaded magazine, though it won't remove the actual visible magazine from the weapon.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×