Giter VIP home page Giter VIP logo

clothing's Introduction

CLOTHING

GitHub release GitHub license Discord Status

The system allows for easy management of clothing using items, enabling players to store and organize their acquired pieces of clothing for quick access and outfit changes. It ensures that players have a convenient way of changing and combining their clothes within the game.

Please report any problems by creating a new issue or join the Discord server.
Also feel free to make a PR.

๐Ÿ”ฅ Features

  • Supports ESX, QB & OX
  • Clothes as items (using metadata)
  • Menu for taking off clothes
    • Context menu
    • Radial menu
  • Option to fix mask and hat clipping issues
    • Whitelist / blacklist for certain IDs
  • Functional gear (Night vision, etc..)
  • Special clothing/outfits
    • Give certain clothing proofs such as fire-proof
  • Outfit renaming
  • Tearing clothes
  • Commands for faster usage
  • Localization
  • Customizable notifications

โฐ Planned Features

  • Bridge system for custom menu integrations.
  • RedM support.

๐Ÿ› ๏ธ Dependencies

๐Ÿ“ฒ Installation

  1. Download latest release or source code
  2. Extract the .zip file
  3. Copy the folder to your server resources folder
  4. Add ensure clothing to your server.cfg
  5. Restart the server

๐Ÿ“Œ Required Items

['clothes'] = {
	label = 'Clothes',
	weight = 100,
	stack = false,
	allowArmed = false,
	client = {
		export = 'clothing.clothes'
	},
	buttons = {
		{
			label = 'Tear',
			action = function(slot)
				TriggerServerEvent('clothing:sv:tearClothes', slot)
			end
		}
	}
},

['outfit'] = {
	label = 'Outfit',
	stack = false,
	client = {
		export = 'clothing.clothes'
	},
	buttons = {
		{
			label = 'Rename',
			action = function(slot)
				TriggerServerEvent('clothing:sv:renameOutfit', slot)
			end
		},
		{
			label = 'Tear',
			action = function(slot)
				TriggerServerEvent('clothing:sv:tearClothes', slot)
			end
		}
	}
},

๐Ÿ“ Exports (client)

  • isWearingOutfit(name) - returns outfit name and outfit label or false
  • isWearing(index) - returns component and texture or false
  • isWearingProp(index) - returns prop and texture or false
  • isNaked() - returns true if player doesn't have any clothes based on the config
  • getPedSex(ped) - returns 'Male' or 'Female' regarding the ped gender

๐Ÿ“ Exports (server)

clothing's People

Contributors

likemantv 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

Watchers

 avatar  avatar  avatar  avatar

clothing's Issues

Adding clothes shops

You should add clothes shop, when a player buy a single cloth or full outfit, the script give it as item

Maybe using NUI for this :)

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.