{"name":"lockedCargo","title":"lockedCargo","type":"command","url":"https://community.bistudio.com/wiki/lockedCargo","revid":321015,"updated":"2022-05-13T11:15:18Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Check whether cargo position of the vehicle is locked.","syntaxes":[{"syntax":"vehicle lockedCargo cargoIndex","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"cargoIndex","type":"Number","type_expr":"Number"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"binary","left":{"text":"vehicle"},"right":{"text":"cargoIndex"}}],"examples":[{"code":["_result = vehicleName lockedCargo 0;"]}],"see_also":["lockCargo"],"notes":[{"user":"AgentRev","date":"2016-05-04T23:09:00Z","text":"For some vehicles, the command returns Nothing if the cargo index is invalid (i.e. -1)"}]}