{"id":145698,"date":"2024-07-03T10:55:19","date_gmt":"2024-07-03T08:55:19","guid":{"rendered":"https:\/\/hifivem.com\/?p=145698"},"modified":"2026-06-22T20:54:16","modified_gmt":"2026-06-22T18:54:16","slug":"free-clothing-as-item-qbcore","status":"publish","type":"post","link":"https:\/\/fivemx.com\/fr\/free-clothing-as-item-qbcore\/","title":{"rendered":"V\u00eatements en tant qu&#039;objet (QBCore) \u2013 FiveMX"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This script allows players to use clothing items in their inventory in FiveM using the qbcore framework. With this script, players can have multiple different clothing items, steal clothing items from other players, and configure commands and removable items.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download<\/h2>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation Guide<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Installing the Script<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Place the File:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Put the script file in the <code>resources<\/code> folder of your FiveM server.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Edit <code>server.cfg<\/code>:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Add the following line to your <code>server.cfg<\/code> file to load the script:sqlCode kopieren<code>start script_name<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Adding Items<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To add new clothing items, insert the following code into your <code>qb-coreshareditems.lua<\/code> file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-- Clothing Items&lt;br&gt;['torso'] = { ['name'] = 'torso', ['label'] = 'Torso', ['weight'] = 100, ['type'] = 'item', ['image'] = 'torso.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable torso item.' },&lt;br&gt;['tshirt'] = { ['name'] = 'tshirt', ['label'] = 'T-Shirt', ['weight'] = 100, ['type'] = 'item', ['image'] = 'tshirt.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable t-shirt item.' },&lt;br&gt;['arms'] = { ['name'] = 'arms', ['label'] = 'Arms', ['weight'] = 100, ['type'] = 'item', ['image'] = 'arms.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable arm accessories.' },&lt;br&gt;['jeans'] = { ['name'] = 'jeans', ['label'] = 'Jeans', ['weight'] = 100, ['type'] = 'item', ['image'] = 'jeans.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A pair of wearable jeans.' },&lt;br&gt;['shoes'] = { ['name'] = 'shoes', ['label'] = 'Shoes', ['weight'] = 100, ['type'] = 'item', ['image'] = 'shoes.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable shoes.' },&lt;br&gt;['bag'] = { ['name'] = 'bag', ['label'] = 'Bag', ['weight'] = 100, ['type'] = 'item', ['image'] = 'bag.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable bag accessory.' },&lt;br&gt;['chain'] = { ['name'] = 'chain', ['label'] = 'Chain', ['weight'] = 100, ['type'] = 'item', ['image'] = 'chain.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable chain accessory.' },&lt;br&gt;['mask'] = { ['name'] = 'mask', ['label'] = 'Mask', ['weight'] = 100, ['type'] = 'item', ['image'] = 'mask.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable mask.' },&lt;br&gt;['helmet'] = { ['name'] = 'helmet', ['label'] = 'Helmet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'helmet.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable helmet.' },&lt;br&gt;['ears'] = { ['name'] = 'ears', ['label'] = 'Ears', ['weight'] = 100, ['type'] = 'item', ['image'] = 'ears.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable ear accessories.' },&lt;br&gt;['watches'] = { ['name'] = 'watches', ['label'] = 'Watches', ['weight'] = 100, ['type'] = 'item', ['image'] = 'watches.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable watches.' },&lt;br&gt;['glasses'] = { ['name'] = 'glasses', ['label'] = 'Glasses', ['weight'] = 100, ['type'] = 'item', ['image'] = 'glasses.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable glasses.' },&lt;br&gt;['bracelet'] = { ['name'] = 'bracelet', ['label'] = 'Bracelet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'bracelet.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable bracelet accessory.' },<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To display item descriptions, add the following to <code>qb-inventory\\html\\js\\app.js<\/code> or a similar file in your inventory system:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">else if (itemData.name == \"torso\") {&lt;br&gt;    $(\".item-info-title\").html(\"&amp;lt;p&amp;gt;\" + itemData.label + \"&amp;lt;\/p&amp;gt;\");&lt;br&gt;    $(\".item-info-description\").html(&lt;br&gt;        \"&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Id Clothe: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.id_clothe + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Id Texture: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.id_texture + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Description: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.description + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;\"&lt;br&gt;    );&lt;br&gt;} else if (itemData.name == \"tshirt\") {&lt;br&gt;    $(\".item-info-title\").html(\"&amp;lt;p&amp;gt;\" + itemData.label + \"&amp;lt;\/p&amp;gt;\");&lt;br&gt;    $(\".item-info-description\").html(&lt;br&gt;        \"&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Id Clothe: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.id_clothe + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Id Texture: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.id_texture + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Description: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.description + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;\"&lt;br&gt;    );&lt;br&gt;} else if (itemData.name == \"arms\") {&lt;br&gt;    $(\".item-info-title\").html(\"&amp;lt;p&amp;gt;\" + itemData.label + \"&amp;lt;\/p&amp;gt;\");&lt;br&gt;    $(\".item-info-description\").html(&lt;br&gt;        \"&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Id Clothe: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.id_clothe + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Id Texture: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.id_texture + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Description: &amp;lt;\/strong&amp;gt;&amp;lt;span&amp;gt;\" + itemData.info.description + \"&amp;lt;\/span&amp;gt;&amp;lt;\/p&amp;gt;\"&lt;br&gt;    );<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Features<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Clothing as Item<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Players can use clothing items in their inventory to change their appearance instantly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Multiple Clothing Items<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Carry multiple clothing items and switch outfits quickly and easily.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Clothing Item Theft<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Players can steal clothing items from each other, adding more player interaction.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Male\/Female Compatibility<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Supports both male and female characters with appropriate clothing options.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Command Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Admins can customize commands for equipping and unequipping clothing items.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Removable Item Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Admins can set whether clothing items are removable or not, requiring players to find new items to change their look.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script allows players to use clothing items in their inventory in FiveM using the qbcore framework. With this script, players can have multiple different clothing items, steal clothing items from other players, and configure commands and removable items. Download Installation Guide Installing the Script Adding Items To add new clothing items, insert the following [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":145522,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2297,2299,2298],"tags":[],"class_list":["post-145698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-free","category-clothes","category-scripts"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/posts\/145698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/comments?post=145698"}],"version-history":[{"count":1,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/posts\/145698\/revisions"}],"predecessor-version":[{"id":207159,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/posts\/145698\/revisions\/207159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media\/145522"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media?parent=145698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/categories?post=145698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/tags?post=145698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}