Pour les Vêtement tu as ce style:
[CODE title="Config_Clothing.hpp"]class cop {
title = "STR_Shops_C_Police";
conditions = "license_cop_police";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "B_tenue_police_1", "", 350, "call life_coplevel >= 1" },
{ "B_tenue_police_2", "", 550, "call life_coplevel >= 1" },
{ "B_tenue_police_4", "", 1250, "call life_coplevel >= 1" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "beret_police_1", "", 25, "call life_coplevel >= 5" },
{ "casquette_police_3", "", 150, "" },
{ "casquette_police_1", "", 150, "" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" },
{ "G_Squares", "", 10, "" },
{ "G_Shades_Blue", "", 20, "" },
{ "G_Sport_Blackred", "", 20, "" },
{ "G_Sport_Checkered", "", 20, "" },
{ "G_Sport_Blackyellow", "", 20, "" },
{ "G_Sport_BlackWhite", "", 20, "" },
{ "G_Shades_Black", "", 25, "" },
{ "G_Lowprofile", "", 30, "" },
{ "G_Combat", "", 55, "" },
{ "G_Aviator", "", 100, "" },
{ "G_Lady_Mirror", "", 150, "" },
{ "G_Lady_Dark", "", 150, "" },
{ "G_Lady_Blue", "", 150, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "gilet_police_1", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_2", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_3", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_4", "", 1200, "call life_coplevel >= 2" }
};
backpacks[] = {
{ "B_AssaultPack_khk", "Sac Invisible", 2000, "" }
};
};
class gendarme {
title = "STR_Shops_C_Gendarmerie";
conditions = "license_cop_gendarme";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "CGM", "", 1250, "call life_coplevel >= 1" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "calot_gn", "", 1200, "call life_coplevel >= 1" },
{ "kepi_gn", "", 1200, "call life_coplevel >= 5" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "Veste_Gendarmerie_GN", "", 1200, "call life_coplevel >= 1" },
{ "Veste_Gendarmerie_MDL", "", 1200, "call life_coplevel >= 2" },
{ "Veste_Gendarmerie_MDLC", "", 1200, "call life_coplevel >= 3" },
{ "Veste_Gendarmerie_SLTN", "", 1200, "call life_coplevel >= 4" },
{ "Veste_Gendarmerie_LTN", "", 1200, "call life_coplevel >= 5" },
{ "Veste_Gendarmerie_CMD", "", 1200, "call life_coplevel >= 6" },
{ "Veste_Gendarmerie_COL", "", 1200, "call life_coplevel >= 7" }
};
backpacks[] = {
{ "B_AssaultPack_khk", "Sac Invisible", 2000, "" }
};
};
class raid {
title = "STR_Shops_C_Raid";
conditions = "license_cop_raid";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "B_tenue_raid_1", "", 1250, "call life_coplevel >= 1" },
{ "B_tenue_raid_2", "", 1250, "call life_coplevel >= 1" },
{ "gign_uniform", "", 1250, "call life_coplevel >= 1" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "gign_helm", "", 150, "" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" },
{ "avon_SF12", "", 150, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "gign_HeavyVest", "", 1200, "call life_coplevel >= 5" },
{ "gign_BlackVest", "", 1200, "call life_coplevel >= 2" },
{ "gilet_raid_1", "", 1200, "call life_coplevel >= 2" },
{ "gilet_raid_2", "", 1200, "call life_coplevel >= 2" },
{ "gilet_raid_3", "", 1200, "call life_coplevel >= 4" }
};
backpacks[] = {
{ "B_AssaultPack_khk", "Sac Invisible", 2000, "" }
};
};
class bac {
title = "STR_Shops_C_Bac";
conditions = "license_cop_bac";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "B_tenue_BAC_1", "", 1250, "call life_coplevel >= 1" },
{ "B_tenue_BAC_2", "", 1250, "call life_coplevel >= 1" },
{ "U_C_Poloshirt_stripped", "", 125, "" },
{ "U_C_Poloshirt_redwhite", "", 150, "" },
{ "U_C_Poloshirt_salmon", "", 175, "" },
{ "U_C_Poloshirt_blue", "", 250, "" },
{ "U_C_Poloshirt_burgundy", "", 275, "" },
{ "U_C_Poloshirt_tricolour", "", 350, "" },
{ "U_C_Poor_2", "", 250, "" },
{ "U_IG_Guerilla2_2", "", 650, "" },
{ "U_IG_Guerilla3_1", "", 735, "" },
{ "U_OrestesBody", "", 1100, "" },
{ "U_IG_Guerilla2_3", "", 1200, "" },
{ "U_C_HunterBody_grn", "", 1500, "" },
{ "U_C_WorkerCoveralls", "", 2500, "" },
{ "U_NikosBody", "", 3000, "" },
{ "U_NikosAgedBody", $STR_C_Civ_Niko, 5000, "" }
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "casquette_police_3", "", 150, "" },
{ "casquette_police_1", "", 150, "" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" },
{ "G_Shades_Black", "", 20, "" },
{ "G_Shades_Blue", "", 20, "" },
{ "G_Shades_Green", "", 20, "" },
{ "G_Shades_Red", "", 20, "" },
{ "G_Sport_Blackred", "", 25, "" },
{ "G_Sport_BlackWhite", "", 25, "" },
{ "G_Sport_Blackyellow", "", 25, "" },
{ "G_Sport_Checkered", "", 25, "" },
{ "G_Sport_Greenblack", "", 25, "" },
{ "G_Sport_Red", "", 25, "" },
{ "G_Lowprofile", "", 30, "" },
{ "G_Squares", "", 50, "" },
{ "G_Aviator", "", 100, "" },
{ "G_Combat", "", 125, "" },
{ "G_Lady_Mirror", "", 150, "" },
{ "G_Lady_Dark", "", 150, "" },
{ "G_Lady_Blue", "", 150, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "gilet_police_1", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_2", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_3", "", 1200, "call life_coplevel >= 2" },
{ "gilet_police_4", "", 1200, "call life_coplevel >= 2" }
};
backpacks[] = {
{ "NONE", $STR_C_Remove_backpacks, 0, "" },
{ "B_AssaultPack_khk", "Sac Invisible", 2000, "" },
{ "B_OutdoorPack_blk", "", 500, "" },
{ "B_AssaultPack_dgtl", "", 2000, "" },
{ "B_AssaultPack_rgr", "", 2000, "" },
{ "B_AssaultPack_sgg", "", 2000, "" },
{ "B_AssaultPack_blk", "", 2000, "" },
{ "B_AssaultPack_cbr", "", 2000, "" },
{ "B_AssaultPack_mcamo", "", 2000, "" },
{ "B_AssaultPack_tna_f", "", 2000, "" }, //Apex DLC
{ "B_TacticalPack_oli", "", 2500, "" },
{ "B_Kitbag_mcamo", "", 3500, "" },
{ "B_Kitbag_sgg", "", 3500, "" },
{ "B_Kitbag_cbr", "", 3500, "" },
{ "B_FieldPack_blk", "", 5000, "" },
{ "B_FieldPack_ocamo", "", 5000, "" },
{ "B_FieldPack_oucamo", "", 5000, "" },
{ "B_FieldPack_ghex_f", "", 5000, "" }, //Apex DLC
{ "B_Bergen_sgg", "", 6500, "" },
{ "B_Bergen_mcamo", "", 6500, "" },
{ "B_Bergen_rgr", "", 6500, "" },
{ "B_Bergen_blk", "", 6500, "" },
{ "B_Carryall_ocamo", "", 7500, "" },
{ "B_Carryall_oucamo", "", 7500, "" },
{ "B_Carryall_mcamo", "", 7500, "" },
{ "B_Carryall_oli", "", 7500, "" },
{ "B_Carryall_khk", "", 7500, "" },
{ "B_Carryall_cbr", "", 7500, "" },
{ "B_Carryall_ghex_f", "", 7500, "" }, //Apex DLC
{ "B_Bergen_dgtl_f", "", 9500, "" }, //Apex DLC
{ "V12_SACOCHE_LV2", "", 9500, "" },
{ "V12_SACOCHE_LV", "", 9500, "" },
{ "V12_SACOCHE_LV1", "", 9500, "" },
{ "V12_SACOCHE_GUCCI", "", 9500, "" },
{ "V12_SACOCHE_GUCCI1", "", 9500, "" },
{ "V12_SACOCHE_GUCCI2", "", 9500, "" },
{ "V12_SACOCHE_CAMO1", "", 9500, "" },
{ "V12_SACOCHE_CAMO3", "", 9500, "" },
{ "V12_SACOCHE_CAMO", "", 9500, "" },
{ "V12_SACOCHE_CAMO2", "", 9500, "" },
{ "V12_BANANE", "", 9500, "" },
{ "V12_BANANE1", "", 9500, "" },
{ "V12_BANANE_LV", "", 9500, "" },
{ "B_Bergen_tna_f", "", 9500, "" } //Apex DLC
};
};[/CODE]
Puis dans ton Init de ton Objet (Mapping)
this addAction["Magasin de la Police",life_fnc_virt_menu,"cop",1.5,true,true,"",'playerSide == west'];
this addAction["Vêtements de policier",life_fnc_clothingMenu,"cop",1.5,true,true,"",'license_cop_police'];
this addAction["Vêtements de gendarme",life_fnc_clothingMenu,"gendarme",1.5,true,true,"",'license_cop_gendarme'];
this addAction["Vêtements du raid",life_fnc_clothingMenu,"raid",1.5,true,true,"",'license_cop_raid'];
this addAction["Vêtements de bac",life_fnc_clothingMenu,"bac",1.5,true,true,"",'license_cop_bac'];