Ahorra un 20 % con WELCOMEVer ofertas

Ropa como artículo (QBCore)

Updated Free resourcenúcleo qbReview source

Este script permite a los jugadores usar prendas de vestir en su inventario en FiveM mediante el framework qbcore. Con este script, pueden tener varias prendas diferentes, robar prendas de otros jugadores y configurar comandos y elementos extraíbles.

Descargar

Instalación del script

  1. Coloque el archivo:
    • Coloque el archivo de script en el recursos carpeta de su servidor FiveM.
  2. Editar servidor.cfg:
    • Añade la siguiente línea a tu servidor.cfg archivo para cargar el script:sqlCode copiariniciar script_name

Agregar elementos

Para agregar nuevas prendas de vestir, inserte el siguiente código en su qb-coreshareditems.lua archivo:

-- Artículos de ropa<br>[&#039;torso&#039;] = { [&#039;nombre&#039;] = &#039;torso&#039;, [&#039;etiqueta&#039;] = &#039;Torso&#039;, [&#039;peso&#039;] = 100, [&#039;tipo&#039;] = &#039;artículo&#039;, [&#039;imagen&#039;] = &#039;torso.png&#039;, [&#039;único&#039;] = verdadero, [&#039;utilizable&#039;] = verdadero, [&#039;shouldClose&#039;] = verdadero, [&#039;combinable&#039;] = nulo, [&#039;descripción&#039;] = &#039;Un artículo de torso portátil.&#039; },<br>[&#039;tshirt&#039;] = { [&#039;name&#039;] = &#039;tshirt&#039;, [&#039;label&#039;] = &#039;Camiseta&#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;Una prenda de camiseta ponible.&#039; },<br>[&#039;arms&#039;] = { [&#039;name&#039;] = &#039;arms&#039;, [&#039;label&#039;] = &#039;Brazos&#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;Accesorios portátiles para brazos.&#039; },<br>[&#039;jeans&#039;] = { [&#039;nombre&#039;] = &#039;jeans&#039;, [&#039;etiqueta&#039;] = &#039;Jeans&#039;, [&#039;peso&#039;] = 100, [&#039;tipo&#039;] = &#039;artículo&#039;, [&#039;imagen&#039;] = &#039;jeans.png&#039;, [&#039;único&#039;] = verdadero, [&#039;utilizable&#039;] = verdadero, [&#039;shouldClose&#039;] = verdadero, [&#039;combinable&#039;] = nulo, [&#039;descripción&#039;] = &#039;Un par de jeans usables.&#039; },<br>[&#039;zapatos&#039;] = { [&#039;nombre&#039;] = &#039;zapatos&#039;, [&#039;etiqueta&#039;] = &#039;Zapatos&#039;, [&#039;peso&#039;] = 100, [&#039;tipo&#039;] = &#039;artículo&#039;, [&#039;imagen&#039;] = &#039;zapatos.png&#039;, [&#039;único&#039;] = verdadero, [&#039;utilizable&#039;] = verdadero, [&#039;shouldClose&#039;] = verdadero, [&#039;combinable&#039;] = nulo, [&#039;descripción&#039;] = &#039;Zapatos usables.&#039; },<br>[&#039;bag&#039;] = { [&#039;name&#039;] = &#039;bag&#039;, [&#039;label&#039;] = &#039;Bag&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;bag.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Un accesorio de bolso portátil.&#039; },<br>['chain'] = { ['name'] = 'chain', ['label'] = 'Chain', ['weight'] = 100, ['type'] = 'item', ['image'] = 'chain.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Un accesorio de cadena wearable.' },<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>[&#039;casco&#039;] = { [&#039;nombre&#039;] = &#039;casco&#039;, [&#039;etiqueta&#039;] = &#039;Casco&#039;, [&#039;peso&#039;] = 100, [&#039;tipo&#039;] = &#039;artículo&#039;, [&#039;imagen&#039;] = &#039;casco.png&#039;, [&#039;único&#039;] = verdadero, [&#039;utilizable&#039;] = verdadero, [&#039;shouldClose&#039;] = verdadero, [&#039;combinable&#039;] = nulo, [&#039;descripción&#039;] = &#039;Un casco portátil.&#039; },<br>[&#039;orejas&#039;] = { [&#039;nombre&#039;] = &#039;orejas&#039;, [&#039;etiqueta&#039;] = &#039;Orejas&#039;, [&#039;peso&#039;] = 100, [&#039;tipo&#039;] = &#039;artículo&#039;, [&#039;imagen&#039;] = &#039;orejas.png&#039;, [&#039;único&#039;] = verdadero, [&#039;utilizable&#039;] = verdadero, [&#039;shouldClose&#039;] = verdadero, [&#039;combinable&#039;] = nulo, [&#039;descripción&#039;] = &#039;Accesorios para las orejas.&#039; },<br>[&#039;watches&#039;] = { [&#039;name&#039;] = &#039;watches&#039;, [&#039;label&#039;] = &#039;Relojes&#039;, [&#039;weight&#039;] = 100, [&#039;type&#039;] = &#039;item&#039;, [&#039;image&#039;] = &#039;watches.png&#039;, [&#039;unique&#039;] = true, [&#039;useable&#039;] = true, [&#039;shouldClose&#039;] = true, [&#039;combinable&#039;] = nil, [&#039;description&#039;] = &#039;Relojes portátiles.&#039; },<br>[&#039;gafas&#039;] = { [&#039;nombre&#039;] = &#039;gafas&#039;, [&#039;etiqueta&#039;] = &#039;Gafas&#039;, [&#039;peso&#039;] = 100, [&#039;tipo&#039;] = &#039;artículo&#039;, [&#039;imagen&#039;] = &#039;gafas.png&#039;, [&#039;único&#039;] = verdadero, [&#039;utilizable&#039;] = verdadero, [&#039;debeCerrar&#039;] = verdadero, [&#039;combinable&#039;] = nulo, [&#039;descripción&#039;] = &#039;Gafas usables.&#039; },<br>[&#039;bracelet&#039;] = { [&#039;name&#039;] = &#039;bracelet&#039;, [&#039;label&#039;] = &#039;Bracelet&#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;Un accesorio de pulsera portátil.&#039; },

Para mostrar descripciones de los artículos, agregue lo siguiente a qb-inventoryhtmljsapp.js o un archivo similar en su sistema de inventario:

de lo contrario si (itemData.name == &quot;torso&quot;) {<br> $(&quot;.item-info-title&quot;).html(&quot;<p> &quot; + itemData.label + &quot;</p> &quot;);<br> $(&quot;.descripción-de-la-información-del-artículo&quot;).html(<br> &quot;<p> <strong>Id. de la prenda:</strong> <span>&quot; + itemData.info.id_clothe + &quot;</span></p><p> <strong>Id Textura:</strong> <span>&quot; + itemData.info.id_texture + &quot;</span></p><p> <strong>Descripción:</strong> <span>&quot; + itemData.info.description + &quot;</span></p> &quot;<br> );<br>} de lo contrario si (itemData.name == &quot;camiseta&quot;) {<br> $(&quot;.item-info-title&quot;).html(&quot;<p> &quot; + itemData.label + &quot;</p> &quot;);<br> $(&quot;.descripción-de-la-información-del-artículo&quot;).html(<br> &quot;<p> <strong>Id. de la prenda:</strong> <span>&quot; + itemData.info.id_clothe + &quot;</span></p><p> <strong>Id Textura:</strong> <span>&quot; + itemData.info.id_texture + &quot;</span></p><p> <strong>Descripción:</strong> <span>&quot; + itemData.info.description + &quot;</span></p> &quot;<br> );<br>} de lo contrario si (itemData.name == &quot;brazos&quot;) {<br> $(&quot;.item-info-title&quot;).html(&quot;<p> &quot; + itemData.label + &quot;</p> &quot;);<br> $(&quot;.descripción-de-la-información-del-artículo&quot;).html(<br> &quot;<p> <strong>Id. de la prenda:</strong> <span>&quot; + itemData.info.id_clothe + &quot;</span></p><p> <strong>Id Textura:</strong> <span>&quot; + itemData.info.id_texture + &quot;</span></p><p> <strong>Descripción:</strong> <span>&quot; + itemData.info.description + &quot;</span></p> &quot;<br> );

La ropa como artículo

Los jugadores pueden usar prendas de vestir en su inventario para cambiar su apariencia instantáneamente.

Varias prendas de vestir

Lleva varias prendas de vestir y cambia de ropa de forma rápida y sencilla.

Robo de prendas de vestir

Los jugadores pueden robarse prendas de vestir unos a otros, lo que añade más interacción entre ellos.

Compatibilidad hombre/mujer

Admite personajes masculinos y femeninos con opciones de vestimenta adecuadas.

Configuración de comandos

Los administradores pueden personalizar comandos para equipar y desequipar prendas de vestir.

Configuración de elementos extraíbles

Los administradores pueden establecer si las prendas son removibles o no, lo que requiere que los jugadores busquen nuevos artículos para cambiar su apariencia.

Deja una respuesta