Basically, I have an arms dealer who as addactions to enable the player to buy weapons, on using the action the weapon is added to a weapons crate for simplicities sake. However, i want the weapons to come at a price. I am using the roleplay objects pack and this contains a magazine to represent money "rpo_obj3".
In the mission, an m4 costs £100, this is equal to one "rpo_obj3", i understand how to remove "rpo_obj3" from the player and add the M4 to the ammo crate in the script
ammobox1 addweaponcargo ["m24",1];
player removemagazine "rpo_obj3";
what i need to know is, if the player doesnt happen to have the correct amount of "rpo_obj3", how do i stop the action taking place?