Thanks guys. I fixed the problems but the crate still appears to be empty. Any ideas?
/
_rdm = round ((random 1)5); _box =_this select 0; if (_rdm == 1) then { _box additemcargo ["itemMap",1]; }; if(_rdm == 2) then { _box additemcargo ["Binocular",1]; }; if(_rdm == 3) then { _box additemcargo ["itemGPS",1]; }; if(_rdm == 4) then { _box additemcargo ["itemFirstAidKit",1]; }; if (_rdm == 5) then { _box addweaponcargo ["arifle_MXM_Base_F",1]; _box addmagazineCargo ["30Rnd_65x39_caseless_mag_Tracer ",1]; }; \[code]