Maxence a écrit le dernier message :
Okay thanks
Then add below :
Then add below :
Code:
case (_item isEqualTo "VITEM_CLASSNAME"): {
closeDialog 0;
_itemGive = "WEAPON_CLASSNAME";
if ((!(player canAdd _itemGive)) && (currentWeapon player != "")) exitWith {
hint (["STR_NOT_ENOUGHT_SPACE","Max_Settings_Craft","Craft_Localization"] call theprogrammer_core_fnc_localize);
};
if (player canAdd _itemGive) then {
player addItem _itemGive;
} else {
player addWeapon _itemGive;
};
};