=== cbb_framework_gear_fnc_setCargoContents === \\ Locality: TODO! Only runs on server Description: Adds items from framework cargo class to container Syntax: [ammobox, loadout, set, clearGear, refill, refillTime] call cbb_framework_gear_fnc_setCargoContents Parameters: [ammobox, loadout, set, clearGear, refill, refillTime] [[https://community.bistudio.com/wiki/Array|Array]] ammobox: [[https://community.bistudio.com/wiki/Object|Object]] loadout: [[https://community.bistudio.com/wiki/String|String]] of [[arma_editing:missions:framework:gear|Cargo class]] (optional, default: infantry_fireteam) set:[[https://community.bistudio.com/wiki/String|String]] of [[arma_editing:missions:framework:gear|Set]] (optional, default: west) clearGear:[[https://community.bistudio.com/wiki/Boolean|Bool]] (optional, default: true) - Clears `ammobox` inventory before filling refill:[[https://community.bistudio.com/wiki/Boolean|Bool]] (optional, default: false) - Will run function in a loop with refillTime refillTime:[[https://community.bistudio.com/wiki/Number|Number]] (optional, default: 300) - Time between looping function in seconds Return Value: [[https://community.bistudio.com/wiki/Nothing|Nothing]] Example 1: [supplyTruck, "ammoStuff", "rhs_usmc", true, true, 120] call cbb_framework_setCargoContents_fnc_regear //clears the cargo of object named `supplyTruck` and refills with cargo class `ammoStuff` from set `rhs_usmc` every 2 minuets