class cop_house_menu {
class button_1 {
displayName = "STR_pInAct_Repair";
buttonAction = "[cursorObject] spawn life_fnc_repairDoor; closeDialog 0;";
buttonToolTip = "";
side[] = {west};
disable = false;
condition = "_vaultHouse = [[['Altis', 'Land_Research_house_V1_F'], ['Tanoa', 'Land_Medevac_house_V1_F']]] call TON_fnc_terrainSort; _AltisArray = [16019.5,16952.9,0];_tanoaArray = [11074.2,11501.5,0.00137329];_pos = [[['Altis', _AltisArray], ['Tanoa', _tanoaArray]]] call TON_fnc_terrainSort;((nearestObject [_pos,'Land_Dome_Big_F']) isEqualTo cursorObject) || ((nearestObject [_pos,_vaultHouse]) isEqualTo cursorObject)";
};
class button_2 {
displayName = "STR_pInAct_CloseOpen";
buttonAction = "[cursorObject] call life_fnc_doorAnimate; closeDialog 0;";
buttonToolTip = "";
side[] = {west};
disable = false;
condition = "_vaultHouse = [[['Altis', 'Land_Research_house_V1_F'], ['Tanoa', 'Land_Medevac_house_V1_F']]] call TON_fnc_terrainSort; _AltisArray = [16019.5,16952.9,0];_tanoaArray = [11074.2,11501.5,0.00137329];_pos = [[['Altis', _AltisArray], ['Tanoa', _tanoaArray]]] call TON_fnc_terrainSort;((nearestObject [_pos,'Land_Dome_Big_F']) isEqualTo cursorObject) || ((nearestObject [_pos,_vaultHouse]) isEqualTo cursorObject)";
};
class button_3 {
displayName = "STR_House_Raid_Owner";
buttonAction = "[cursorObject] call life_fnc_copHouseOwner;";
buttonToolTip = "";
side[] = {west};
disable = false;
condition = "";
};
class button_4 {
displayName = "STR_pInAct_BreakDown";
buttonAction = "[cursorObject] spawn life_fnc_copBreakDoor; closeDialog 0;";
buttonToolTip = "";
side[] = {west};
disable = false;
condition = "";
};
class button_5 {
displayName = "STR_pInAct_SearchHouse";
buttonAction = "[cursorObject] spawn life_fnc_raidHouse; closeDialog 0;";
buttonToolTip = "";
side[] = {west,civ};
disable = false;
condition = "!(player distance cursorObject > 15) && {cursorObject isKindOf ""House""}";
};
class button_6 {
displayName = "STR_pInAct_LockHouse";
buttonAction = "[cursorObject] spawn life_fnc_lockupHouse; closeDialog 0;";
buttonToolTip = "";
side[] = {west};
disable = false;
condition = "";
};
class button_7 {
displayName = "STR_pInAct_BuyHouse";
buttonAction = "[cursorObject] spawn life_fnc_buyHouse; closeDialog 0;";
buttonToolTip = "";
side[] = {west};
disable = false;
condition = "_houseCfg = [(typeOf cursorObject)] call life_fnc_houseConfig; !(cursorObject in life_vehicles) && isNil {cursorObject getVariable 'house_owner'} && !(count _houseCfg isEqualTo 0) && (isClass (missionConfigFile >> 'Housing' >> worldName >> typeOf cursorObject))";
};
};