Advertisement
Guest User

local_lockUnlock

a guest
May 20th, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. private ["_vehicle","_status"];
  2. _vehicle = _this select 0;
  3. _status = _this select 1;
  4.  
  5. if (local _vehicle) then {
  6. if(_status) then {
  7. _vehicle setVehicleLock "LOCKED";
  8. _vehicle setVariable ["BTC_Cannot_Lift",true,true];
  9. _vehicle setVariable ["MF_Tow_Cannot_Tow",true,true];
  10. } else {
  11. _vehicle setVehicleLock "UNLOCKED";
  12. _vehicle setVariable ["BTC_Cannot_Lift",false,true];
  13. _vehicle setVariable ["MF_Tow_Cannot_Tow",false,true];
  14. };
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement