Skip to content

LikeManTV/clothing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)