Git Product home page Git Product logo

fivem-clothes's Introduction

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

fivem-clothes's People

Contributors

thebritishbrotherhood avatar xchopin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fivem-clothes's Issues

Sql installation

I have an error on import sql file :

[Err] 1215 - Cannot add foreign key constraint

Jobs

so the jobs dont seem to work you got to the wood area nothing happens
s

Categories

Hello,

I would like to ask, if this script is capable of sorting to categories of clothes e.g. shop for suits, shop for add-on clothes, shop for basic clothing etc.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.