{"name":"setVehicleLock","operator":null,"title":"setVehicleLock","type":"command","url":"https://community.bistudio.com/wiki/setVehicleLock","revid":364112,"updated":"2024-05-04T22:05:25Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Sets vehicle lock. Possible values:\n\n- \"UNLOCKED\"\n- \"DEFAULT\"\n- \"LOCKED\"\n- \"LOCKEDPLAYER\"","syntaxes":[{"syntax":"vehicleName setVehicleLock lockState","since":null,"effect":null,"exec":null,"params":[{"name":"vehicleName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicleName: Object"},{"name":"lockState","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"lockState: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicleName","types":["Object"]},"right":{"text":"lockState","types":["String"]}}],"examples":[{"text":"```sqf\n_veh1 setVehicleLock \"LOCKED\";\n```","code":["_veh1 setVehicleLock \"LOCKED\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lock","locked","lockDriver","lockCargo","lockTurret"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Operation Flashpoint: Elite version 1.00","Operation Flashpoint: Elite: New Scripting Commands","Operation Flashpoint: Elite: Scripting Commands","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}