FiveM-Clothes
FiveM-Clothes copied to clipboard
👖 [FiveM Plugin] Clothing Shops and more!
FiveM: Clothing Shops addon
Your clothing shop addon for FiveM.

Not maintained anymore
- Works with the FX Version
Features
- Load skin and clothes on spawn/death
- Fast loading
- Buy new clothes
- Blips on the map
- Marker in shops
- Multi-language support (US/FR)
- Elegant menu
- Try clothes before to buy them
- Notifications on buying
- A lot of accessories
- Choice of the gender
- Legacy function (in tribute of skin_customization) for a compatibility with old mods like FiveM_Cops
Getting Started
1. Clone the repository
$ git clone https://github.com/xchopin/FiveM-Clothes.git
2. Import the SQL file into your DBMS
$ mysql> ./clothing_shop_SQL.sql
3. Create your settings file (and fill the fields)
$ cp Server/settings.lua.dist settings.lua
4. Add the dependency to your .yml
Gameplay
- In a special menu, press right or left arrow to change the texture
- Press Enter or 'A' (Xbox) to save your choice (it will save in the database)
API
Details about components
Component | Part | Prop | Part |
---|---|---|---|
Face | 0 | Hats | 0 |
Mask | 1 | Glasses | 1 |
Hair | 2 | Ears | 2 |
Gloves | 3 | ||
Pants | 4 | ||
Bags | 5 | ||
Shoes | 6 | ||
Shirts | 8 | ||
Vests | 9 | ||
Jackets | 11 |
Server Events
Get the skin model of a player
-- Give the client'skin model (gives the value from the DB)
clothing_shop:GetSkin_server
Save the items of a player
-- Updates the DBMS
-- @param item.collection: skin or prop or component
-- @param item.id (check the table), not required if collection == skin
-- @param item.value
-- @param item.texture_value can be empty if collection == skin
clothing_shop:SaveItem_server({item.collection, item.id}, {values.value, values.texture_value})
Client Events
-- Change the gender, might change the name of this one lol
-- @param skin: must be "mp_m_freemode_01" or "mp_m_freemode_01"
clothing_shop:getSkin_client(skin)
-- Set all the items on a player
-- @param items: JSON format, it requires all the component elements
clothing_shop:loadItems_client(items)
Contributors
- @xchopin
- @TheBritishBrotherhood