0
Jouw winkelwagen

Kleding als item (QBCore)

Kleding als item - QBCore

Met dit script kunnen spelers kledingstukken in hun inventaris gebruiken in FiveM met behulp van het qbcore-framework. Met dit script kunnen spelers meerdere verschillende kledingstukken hebben, kledingstukken van andere spelers stelen en opdrachten en verwijderbare items configureren.

Downloaden

Installatie gids

Het script installeren

  1. Plaats het bestand:
    • Zet de script bestand in de middelen map van uw FiveM-server.
  2. Bewerking server.cfg:
    • Voeg de volgende regel toe aan uw server.cfg bestand om het script te laden:sqlCode kopiërenstart script_naam

Items toevoegen

Om nieuwe toe te voegen kleding items, voeg de volgende code in uw qb-coreshareditems.lua file:

-- Kledingstukken<br>[&#039;torso&#039;] = { [&#039;name&#039;] = &#039;torso&#039;, [&#039;label&#039;] = &#039;Torso&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;torso.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Een draagbaar torso-item.&#039; },<br>[&#039;tshirt&#039;] = { [&#039;name&#039;] = &#039;tshirt&#039;, [&#039;label&#039;] = &#039;T-shirt&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;tshirt.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Een draagbaar t-shirtitem.&#039; },<br>[&#039;arms&#039;] = { [&#039;name&#039;] = &#039;arms&#039;, [&#039;label&#039;] = &#039;Arms&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;arms.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Draagbare armaccessoires.&#039; },<br>[&#039;jeans&#039;] = { [&#039;name&#039;] = &#039;jeans&#039;, [&#039;label&#039;] = &#039;Jeans&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;jeans.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Een draagbare jeans.&#039; },<br>[&#039;schoenen&#039;] = { [&#039;naam&#039;] = &#039;schoenen&#039;, [&#039;label&#039;] = &#039;Schoenen&#039;, [&#039;gewicht&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;afbeelding&#039;] = &#039;schoenen.png&#039;, [&#039;uniek&#039;] = waar, [&#039;bruikbaar&#039;] = waar, [&#039;shouldClose&#039;] = waar, [&#039;combineerbaar&#039;] = nil, [&#039;beschrijving&#039;] = &#039;Draagbare schoenen.&#039; },<br>[&#039;tas&#039;] = { [&#039;naam&#039;] = &#039;tas&#039;, [&#039;label&#039;] = &#039;tas&#039;, [&#039;gewicht&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;afbeelding&#039;] = &#039;tas.png&#039;, [&#039;uniek&#039;] = waar, [&#039;bruikbaar&#039;] = waar, [&#039;shouldClose&#039;] = waar, [&#039;combineerbaar&#039;] = nil, [&#039;beschrijving&#039;] = &#039;Een draagbaar tasaccessoire.&#039; },<br>[&#039;chain&#039;] = { [&#039;name&#039;] = &#039;chain&#039;, [&#039;label&#039;] = &#039;Chain&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;chain.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Een draagbaar kettingaccessoire.&#039; },<br>[&#039;mask&#039;] = { [&#039;name&#039;] = &#039;mask&#039;, [&#039;label&#039;] = &#039;Masker&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;mask.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Een draagbaar masker.&#039; },<br>[&#039;helm&#039;] = { [&#039;naam&#039;] = &#039;helm&#039;, [&#039;label&#039;] = &#039;Helm&#039;, [&#039;gewicht&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;afbeelding&#039;] = &#039;helmet.png&#039;, [&#039;uniek&#039;] = waar, [&#039;bruikbaar&#039;] = waar, [&#039;shouldClose&#039;] = waar, [&#039;combineerbaar&#039;] = nil, [&#039;beschrijving&#039;] = &#039;Een draagbare helm.&#039; },<br>[&#039;ears&#039;] = { [&#039;name&#039;] = &#039;ears&#039;, [&#039;label&#039;] = &#039;Oren&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;ears.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Draagbare ooraccessoires.&#039; },<br>[&#039;horloges&#039;] = { [&#039;naam&#039;] = &#039;horloges&#039;, [&#039;label&#039;] = &#039;Horloges&#039;, [&#039;gewicht&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;afbeelding&#039;] = &#039;horloges.png&#039;, [&#039;uniek&#039;] = waar, [&#039;bruikbaar&#039;] = waar, [&#039;shouldClose&#039;] = waar, [&#039;combineerbaar&#039;] = nil, [&#039;beschrijving&#039;] = &#039;Draagbare horloges.&#039; },<br>[&#039;bril&#039;] = { [&#039;naam&#039;] = &#039;bril&#039;, [&#039;label&#039;] = &#039;bril&#039;, [&#039;gewicht&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;afbeelding&#039;] = &#039;bril.png&#039;, [&#039;uniek&#039;] = waar, [&#039;bruikbaar&#039;] = waar, [&#039;shouldClose&#039;] = waar, [&#039;combineerbaar&#039;] = nil, [&#039;beschrijving&#039;] = &#039;Draagbare bril.&#039; },<br>[&#039;bracelet&#039;] = { [&#039;name&#039;] = &#039;bracelet&#039;, [&#039;label&#039;] = &#039;Armband&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;bracelet.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Een draagbaar armbandaccessoire.&#039; },

Om artikelbeschrijvingen weer te geven, voegt u het volgende toe aan qb-inventaris\html\js\app.js of een soortgelijk bestand in uw inventarissysteem:

anders als (itemData.name == &quot;romp&quot;) {<br>    $(&quot;.item-info-titel&quot;).html(&quot;<p> &quot; + itemData.label + &quot;</p> &quot;);<br>    $(&quot;.item-info-beschrijving&quot;).html(<br>        &quot;<p> <strong>Id kleed:</strong> <span>&quot; + itemData.info.id_kleed + &quot;</span></p><p> <strong>Id-textuur:</strong> <span>&quot; + itemData.info.id_texture + &quot;</span></p><p> <strong>Beschrijving:</strong> <span>&quot; + itemData.info.description + &quot;</span></p> &quot;<br>    );<br>} anders als (itemData.name == &quot;tshirt&quot;) {<br>    $(&quot;.item-info-titel&quot;).html(&quot;<p> &quot; + itemData.label + &quot;</p> &quot;);<br>    $(&quot;.item-info-beschrijving&quot;).html(<br>        &quot;<p> <strong>Id kleed:</strong> <span>&quot; + itemData.info.id_kleed + &quot;</span></p><p> <strong>Id-textuur:</strong> <span>&quot; + itemData.info.id_texture + &quot;</span></p><p> <strong>Beschrijving:</strong> <span>&quot; + itemData.info.description + &quot;</span></p> &quot;<br>    );<br>} anders als (itemData.name == &quot;arms&quot;) {<br>    $(&quot;.item-info-titel&quot;).html(&quot;<p> &quot; + itemData.label + &quot;</p> &quot;);<br>    $(&quot;.item-info-beschrijving&quot;).html(<br>        &quot;<p> <strong>Id kleed:</strong> <span>&quot; + itemData.info.id_kleed + &quot;</span></p><p> <strong>Id-textuur:</strong> <span>&quot; + itemData.info.id_texture + &quot;</span></p><p> <strong>Beschrijving:</strong> <span>&quot; + itemData.info.description + &quot;</span></p> &quot;<br>    );

Kenmerken

Kleding als item

Spelers kunnen kledingstukken uit hun inventaris gebruiken om hun uiterlijk direct te veranderen.

Meerdere kledingstukken

Draag meerdere kledingstukken en wissel snel en eenvoudig van outfit.

Diefstal van kledingstukken

Spelers kunnen kledingstukken van elkaar stelen, wat zorgt voor meer interactie tussen de spelers.

Compatibiliteit man/vrouw

Ondersteunt zowel mannelijke als vrouwelijke personages met passende kledingopties.

Opdrachtconfiguratie

Beheerders kunnen opdrachten aanpassen voor het aan- en uittrekken van kledingstukken.

Verwijderbare itemconfiguratie

Beheerders kunnen instellen of kledingstukken verwijderbaar zijn of niet, waardoor spelers nieuwe items moeten vinden om hun uiterlijk te veranderen.

DEEL:

Geef een reactie

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *


nl_NLDutch
Besteed $50.00 om een 20% korting!
0%
Jouw winkelwagen

Geen producten in de winkelwagen.