yourry 14 Posted May 1, 2014 (edited) Hello, I created a small 3D model, a syringe. (. P3d) 3D model works correctly but when I add this item in my inventory (via the command: player addItem "ROJ_Syringe_Morphine" ;), I get the following error: Warning Message: Picture equip \ w \ w_roj \ roj_items \ syringe_morphine \ data \ picture_syringe_morphine.paa.paa not found I do not understand why the game will search the image in the folder "equip \ w \ w ..." It is noted nowhere. Here is the config.cpp Addon. I FirstAidKit based on the game: class CfgPatches { class ROJ_ItemsHolders { units[] = {"Item_ROJ_Syringe_Morphine"}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class cfgVehicles { class Item_FirstAidKit; class Item_ROJ_Syringe_Morphine: Item_FirstAidKit { scope = 2; scopeCurator = 2; displayName = "Morphine"; //picture = "roj\ROJ_Items\Syringe_morphine\data\picture_Syringe_morphine.paa"; //model = "roj\ROJ_Items\Syringe_morphine\Syringe_morphine.p3d"; author = "Yourry"; vehicleClass = "Items"; class TransportItems { class ROJ_Syringe_Morphine { name = "ROJ_Syringe_Morphine"; count = 1; }; }; }; }; class CfgWeapons { class FirstAidKit; class ROJ_Syringe_Morphine: FirstAidKit { scope = 2; //allowedSlots[] = {801,701,901}; //displayName = "$STR_A3_cfgWeapons_ROJ_Syringe_Morphine0"; displayName = "Morphine"; picture = "\ROJ\ROJ_Items\Syringe_morphine\data\picture_Syringe_morphine.paa"; model = "\ROJ\ROJ_Items\Syringe_morphine\Syringe_morphine.p3d"; descriptionShort = "Un coup de picouse et roule ma poule"; class ItemInfo { mass = 1; type = 401; scope = 0; }; }; }; Thank you for your help Edited May 2, 2014 by Yourry Editing config.cpp Share this post Link to post Share on other sites
IT07 10 Posted May 2, 2014 Maybe it takes that path if you do not define a picture for it yourself? Share this post Link to post Share on other sites
eggbeast 3685 Posted May 2, 2014 you may need a pboprefix in the root folder saying what the name of the mod root folder is Share this post Link to post Share on other sites
surpher 1 Posted May 2, 2014 Add a \ to the beginning of the path. picture = "\ROJ\ROJ_Items\syringe_morphine\data\picture_syringe_morphine.paa"; Share this post Link to post Share on other sites
yourry 14 Posted May 2, 2014 Thank you for your answers. Surpher you're right. After correcting it works very well. I sincerely thank you for your help. I corrected my config.cpp so that it can use other people. Share this post Link to post Share on other sites