switch (playerSide) do { case civilian: { //Ausweis life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzsehen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']]; //Drop fishing net life_actions = [player addAction[localize "STR_pAct_DropFishingNet",life_fnc_dropFishingNet,"",0,false,false,"",' (surfaceisWater (getPos vehicle player)) && (vehicle player isKindOf "Ship") && life_carryWeight < life_maxWeight && speed (vehicle player) < 2 && speed (vehicle player) > -1 && !life_net_dropped ']]; //Rob person life_actions = life_actions + [player addAction[localize "STR_pAct_RobPerson",life_fnc_robAction,"",0,false,false,"",' !isNull cursorObject && player distance cursorObject < 3.5 && isPlayer cursorObject && animationState cursorObject == "Incapacitated" && !(cursorObject getVariable["robbed",FALSE]) ']]; }; case west: { // nano EMP Little Bird life_actions = life_actions + [player addAction["EMP Operator Konsole öffnen",life_fnc_openEmpMenu,"",8,false,false,"",'[_this] call life_fnc_isEmpOperator']]; // Polizeimarke life_actions = life_actions + [player addAction["Polizeimarke zeigen",life_fnc_copShowLicense,"",1,false,true,"",'playerSide == west && !isNull cursorTarget &&cursorTarget isKindOf "Man" ']]; //Waffen Entfernen life_actions = life_actions + [player addAction["Sachen Beschlagnahmen",life_fnc_seizeWeapon,cursorTarget,0,false,false,"",'count(nearestObjects [player,["weaponholder"],3])>0']]; //Ausweis life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzsehen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']]; //Call backup life_actions pushBack [player addAction["Rufe Unterstützung",life_fnc_callBackup,"",0,FALSE,FALSE,""]]; }; case independent: { //Ausweis life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzsehen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']]; }; };