{"name":"setMaxLoad","operator":null,"title":"setMaxLoad","type":"command","url":"https://community.bistudio.com/wiki/setMaxLoad","revid":309142,"updated":"2022-05-03T11:53:13Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.08"}],"since":{"game":"arma3","name":"Arma 3","version":"2.08"},"arma3_since":"2.08","branch":null,"locality":{"argument":null,"effect":null,"server_exec":true},"exec":null,"description":"Sets maximum load limit for a uniform/vest/backpack containers, vehicle cargo, supply boxes and weapon holders. In MP this command should be executed on the server and will persist on given container for JIP.\n\n> [!NOTE]\n> Cannot be set on a unit, as unit max load value is static config type","syntaxes":[{"syntax":"container setMaxLoad maxLoadValue","since":null,"effect":null,"exec":null,"params":[{"name":"container","type":"Object","optional":false,"default":null,"description":"uniform/vest/backpack container, vehicle cargo, supply box, weapon holder","types":["Object"],"since":null,"text":"container: Object - uniform/vest/backpack container, vehicle cargo, supply box, weapon holder"},{"name":"maxLoadValue","type":"Number","optional":false,"default":null,"description":"max load limit","types":["Number"],"since":null,"text":"maxLoadValue: Number - max load limit"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"container","types":["Object"]},"right":{"text":"maxLoadValue","types":["Number"]}}],"examples":[{"text":"```sqf\n_yaMum setMaxLoad _maxLoad;\n```","code":["_yaMum setMaxLoad _maxLoad;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["maxLoad","load","loadAbs","loadBackpack","loadUniform","loadVest","getContainerMaxLoad"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 2.08","Scripting Commands","Scripting Commands: Server Execution"]}