WELCOME-coupon beschikbaar Gebruik code WELCOME bij het afrekenen tot en met 31 juli 2026. WELCOME

Clothing As Item (QBCore) – FiveMX

Een gratis script testen?

Gratis scripts zijn prima voor snelle controles. Voor productieservers vergelijk je volledige serverpakketten of onderhouden betaalde scripts per framework en gebruiksscenario.

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.

Downloaden

Installation Guide

Installing the Script

  1. Place the File:
    • Put the script file in the resources folder of your FiveM server.
  2. Bewerken server.cfg:
    • Add the following line to your server.cfg file to load the script:sqlCode kopierenstart script_name

Adding Items

To add new clothing items, insert the following code into your qb-coreshareditems.lua bestand:

-- Clothing Items<br>['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.' },<br>['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.' },<br>['arms'] = { ['name'] = 'arms', ['label'] = 'Arms', ['weight'] = 100, ['type'] = 'item', ['image'] = 'arms.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable arm accessories.' },<br>['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.' },<br>['shoes'] = { ['name'] = 'shoes', ['label'] = 'Shoes', ['weight'] = 100, ['type'] = 'item', ['image'] = 'shoes.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable shoes.' },<br>['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.' },<br>['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.' },<br>['mask'] = { ['name'] = 'mask', ['label'] = 'Mask', ['weight'] = 100, ['type'] = 'item', ['image'] = 'mask.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable mask.' },<br>['helmet'] = { ['name'] = 'helmet', ['label'] = 'Helmet', ['weight'] = 100, ['type'] = 'item', ['image'] = 'helmet.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A wearable helmet.' },<br>['ears'] = { ['name'] = 'ears', ['label'] = 'Ears', ['weight'] = 100, ['type'] = 'item', ['image'] = 'ears.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable ear accessories.' },<br>['watches'] = { ['name'] = 'watches', ['label'] = 'Watches', ['weight'] = 100, ['type'] = 'item', ['image'] = 'watches.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable watches.' },<br>['glasses'] = { ['name'] = 'glasses', ['label'] = 'Glasses', ['weight'] = 100, ['type'] = 'item', ['image'] = 'glasses.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Wearable glasses.' },<br>['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.' },

To display item descriptions, add the following to qb-inventory\html\js\app.js or a similar file in your inventory system:

else if (itemData.name == "torso") {<br>    $(".item-info-title").html("&lt;p&gt;" + itemData.label + "&lt;/p&gt;");<br>    $(".item-info-description").html(<br>        "&lt;p&gt;&lt;strong&gt;Id Clothe: &lt;/strong&gt;&lt;span&gt;" + itemData.info.id_clothe + "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Id Texture: &lt;/strong&gt;&lt;span&gt;" + itemData.info.id_texture + "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Description: &lt;/strong&gt;&lt;span&gt;" + itemData.info.description + "&lt;/span&gt;&lt;/p&gt;"<br>    );<br>} else if (itemData.name == "tshirt") {<br>    $(".item-info-title").html("&lt;p&gt;" + itemData.label + "&lt;/p&gt;");<br>    $(".item-info-description").html(<br>        "&lt;p&gt;&lt;strong&gt;Id Clothe: &lt;/strong&gt;&lt;span&gt;" + itemData.info.id_clothe + "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Id Texture: &lt;/strong&gt;&lt;span&gt;" + itemData.info.id_texture + "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Description: &lt;/strong&gt;&lt;span&gt;" + itemData.info.description + "&lt;/span&gt;&lt;/p&gt;"<br>    );<br>} else if (itemData.name == "arms") {<br>    $(".item-info-title").html("&lt;p&gt;" + itemData.label + "&lt;/p&gt;");<br>    $(".item-info-description").html(<br>        "&lt;p&gt;&lt;strong&gt;Id Clothe: &lt;/strong&gt;&lt;span&gt;" + itemData.info.id_clothe + "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Id Texture: &lt;/strong&gt;&lt;span&gt;" + itemData.info.id_texture + "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Description: &lt;/strong&gt;&lt;span&gt;" + itemData.info.description + "&lt;/span&gt;&lt;/p&gt;"<br>    );

Functies

Kleding als Item

Players can use clothing items in their inventory to change their appearance instantly.

Multiple Clothing Items

Carry multiple clothing items and switch outfits quickly and easily.

Clothing Item Theft

Players can steal clothing items from each other, adding more player interaction.

Male/Female Compatibility

Supports both male and female characters with appropriate clothing options.

Command Configuration

Admins can customize commands for equipping and unequipping clothing items.

Removable Item Configuration

Admins can set whether clothing items are removable or not, requiring players to find new items to change their look.

Lucas
Lucas

Ik ben Luke, een gamer, en ik schrijf graag over FiveM, GTA en roleplay. Ik beheer een roleplay-community en heb ongeveer 10 jaar ervaring met het beheren van servers.

Artikelen: 436

Geef een reactie