Skip to content

LikeManTV/clothing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

27880b8 Β· Mar 1, 2025

History

52 Commits
Apr 9, 2024
Jun 30, 2024
Mar 1, 2025
Feb 22, 2024
May 4, 2024
May 14, 2024
May 4, 2024
Feb 6, 2024
May 19, 2024
Feb 8, 2025
May 4, 2024
Feb 22, 2024

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)