banner



How To Add Clothes To Fivem Server

fivem-appearance

Lint

A replacement for qb-clothing and other clothing resource for qb-core

fivem-appearance with Tattoos

Discord: https://discord.gg/ZVJEkjUTkx

Dependencies

  • PolyZone
  • qb-core (Latest)
  • qb-menu
  • qb-input
  • qb-target (Optional)

Features

  • Everything from standalone fivem-appearance
  • Player outfits
  • Rank based Clothing Rooms for Jobs / Gangs
  • Job / Gang locked Stores
  • Tattoo's Support
  • Hair Textures
  • Polyzone Support
  • Ped Menu command (/pedmenu) (Configurable)
  • Reload Skin control (/reloadskin)
  • Improved lawmaking quality
  • Plastic Surgeons
  • qb-target Support
  • Pare migration support (qb-wearable / old fivem-appearance)
  • Role player specific outfit locations (Restricted via CitizenID)
  • Makeup Secondary Color
  • QBCore Theme
  • Component & Props Blacklist back up
  • Limit Components & Props to certain Jobs / Gangs
  • Limit Components & Props to ACEs (Allows y'all to have VIP clothing on your Server)
  • Persist Job / Gang Clothes on reconnects / logout
  • Themes Support

New Preview (with Tattoos)

https://streamable.com/qev2h7

Setup

  • Delete / stop qb-wearable from youre resources folder
  • Delete / stop any tattoo shop resources e.grand., qb-tattooshop from your resources binder
  • Put setr fivem-appearance:locale "en" in your server.cfg
  • Put ensure fivem-appearance in your server.cfg
  • If you want to use ACE permissions for clothing items so do the following:
    • Add together add_ace resource.fivem-appearance command.list_aces permit to server.cfg
    • Set Config.EnableACEPermissions to true in shared/config.lua
  • Delete the table player_outfits from your database
  • Employ the SQL file located here to your database to have the new player_outfits table created
  • If you want to configure qb-multicharacter, follow the corresponding guide for your version here
  • Restart your server
  • Follow the corresponding guide below based on your older version of clothing resource (qb-article of clothing / fivem-appearance)

qb-clothing

Migration demo: https://streamable.com/ydxoqb

  • Connect to your server
  • Open upward any of your saved character
  • Run the post-obit control:
              /migrateskins qb-clothing
  • Await until all the skins are migrated to the new format
  • Quit the game
  • Restart the server

fivem-appearance (aj, mirrox1337 etc)

  • Delete player_outfits tabular array from the database
  • Create the player_outfits tabular array using the SQL here
  • Connect to your server
  • Open any of your saved character
  • Run the following control:
              /migrateskins fivem-appearance
  • Await until all the skins are migrated to the new format
  • Restart the server

Blacklisting Clothes and / or Limiting them to Jobs / Gangs / ACEs

Yous can now blacklist unlike clothes by calculation them in a specific format to blacklist.json. The default file contains all the component names that you tin choose to blacklist. For example if you lot want to blacklist following items:

              Jackets: 10, 12, 13, 18 (All Textures) Jackets: 11 (Texture: 1, 2, iii) Masks: 10, 11, 12, 13 (All Textures) Masks: 14 (Texture: 5, vii, 10, 12, 13) Jackets: 25, 30, 35 (Accessible only to "police" job) Hats: 41, 42, 45 (Accessible only to "ballas" gang) Scarfs & Chains: 5, six, 7 (Accessible only to "vip" ACE)                          

Here is how the JSON file would look like, for such configuration:

{              "male": {              "components": {              "masks": [         {              "drawables": [10,              11,              12,              xiii]         },         {              "drawables": [fourteen],              "textures": [five,              7,              10,              xi,              12,              xiii]         }       ],              "upperBody": [],              "lowerBody": [],              "bags": [],              "shoes": [],              "scarfAndChains": [         {              "drawables": [5,              6,              seven],              "aces": [                "vip"              ]         }       ],              "shirts": [],              "bodyArmor": [],              "decals": [],              "jackets": [         {              "drawables":  [eleven],              "textures": [ane,              2,              3]         },         {              "drawables": [10,              12,              13,              18]         },         {              "drawables": [25,              30,              35],              "jobs": [                "police force"              ]         }       ]     },              "props": {              "hats": [         {              "drawables": [41,              42,              45],              "gangs": [                "ballas"              ]         }       ],              "glasses": [],              "ear": [],              "watches": [],              "bracelets": []     }   },              "female": {              "components": {              "masks": [],              "upperBody": [],              "lowerBody": [],              "bags": [],              "shoes": [],              "scarfAndChains": [],              "shirts": [],              "bodyArmor": [],              "decals": [],              "jackets": []     },              "props": {              "hats": [],              "glasses": [],              "ear": [],              "watches": [],              "bracelets": []     }   } }

You tin can separately blacklist male and female apparel. Simply put them nether the right section in the json and you lot should be good to go.

Theme configuration

fivem-appearance comes with two themes, default and qb-core and qb-core is set as the default one.

Switch betwixt themes

Change currentTheme to the theme id. You lot tin can choose between qb-cadre and default.

Creating custom themes

  • Copy an existing theme based on which you desire to create a new ane
  • Change the id to something unique
  • Change the parameters of the theme accordingly

Theme parameters

Y'all tin can customize every theme using the parameters defined in theme.json. Post-obit table explains a little fleck about what each parameter can do

Parameter Description
id Unique ID for the theme
borderRadius How circular do you want the corners of the elements to be
fontColor Main color of the text
fontColorHover Color of the text on hover
fontColorSelected Color of the text when it is selected
fontFamily Font of the text
primaryBackground Main background color for the elements
primaryBackgroundSelected Principal background colour for the elements when they are selected
secondaryBackground Secondary background colour
scaleOnHover Increase the size of the elements on hover
sectionFontWeight Font weight for the section headings text
smoothBackgroundTransition Enable to fade in to the background color during hover

Note: Subsequently creating the custom theme, brand sure to change currentTheme to the id of the new theme. You lot can ofcourse alter the existing themes as well if you want, but it is recommended to create your own so that you can switch between the defaults and the custom 1 whenever needed.

Credits

  • Original Script: https://github.com/pedr0fontoura/fivem-appearance
  • Tattoo'south Back up: https://github.com/franfdezmorales/fivem-appearance
  • Last Maintained Fork for QB: https://github.com/mirrox1337/aj-fivem-advent

How To Add Clothes To Fivem Server,

Source: https://github.com/ImpulseFPS/qb-clothing

Posted by: petersluch1985.blogspot.com

0 Response to "How To Add Clothes To Fivem Server"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel