Ich habe momentan das Problem, dass ich nicht weiß wie ich eine Lizenzabfrage für einen Fahrzeugladen erstelle.
Bisher habe ich folgendes in der Config_Vehicles.hpp stehen:
Code
		
					
				class soeldner {
        side = "civ";
        vehicles[] = {
            { "B_Quadbike_01_F", { "", "", -1 } },
            { "B_G_Offroad_01_F", { "", "", -1 } },
            { "O_MRAP_02_F", { "", "", -1 } },
            { "B_G_Offroad_01_armed_F", { "", "", -1 } },
            { "B_MRAP_01_F", { "", "", -1 } },
            { "O_T_LSV_02_unarmed_F", { "", "", -1 } },
            { "B_T_LSV_01_unarmed_F", { "", "", -1 } },
        };
    };
	
			Alles anzeigen
	...und folgendes in der Init des NPC:
Code
		
			his enableSimulation false; this allowDamage false; this addAction[localize "STR_MAR_soeldner_car",life_fnc_vehicleShopMenu,["soeldner",civilian,["soeldner_car1","soeldner_car2"],"civ","Söldner Fahrzeughandel"]]; this setVariable ["realname", "Söldner Fahrzeughandel"]; this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "soeldner" >> "displayName")),[(getNumber(missionConfigFile >> "Licenses" >> "soeldner" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"soeldner",0,false,false,"",' !license_civ_soeldner && playerSide isEqualTo civilian '];
	
	Vielen Dank schonmal im vorraus ![]()