FivecodeDocs
DiscordTebex StoreYoutube
  • Welcome
  • Scripts
    • Fivecode Clothing
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Armor
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Carkeys
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Roleplay Chat
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Camping
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Burger Shot Job
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode UWU Cat Cafe Job
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Vanilla Unicorn Job
      • Installation Guide
      • Config file
      • Tutorials
  • Tutorials
    • Fivem escrow System
      • Error parsing script ... <\1>
      • Failed to verify protected resource
Powered by GitBook
On this page

Was this helpful?

  1. Scripts
  2. Fivecode Clothing

Tutorials

PreviousConfig fileNextFivecode Armor

Last updated 4 months ago

Was this helpful?

1.

Add clothing to a player:

-- 1: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
-- 2: Clothing number
-- 3: Clothing color
exports.fivecode_clothing:AddClothing(clothType, clothNumber, clothColor)
-- 1: Player source
-- 2: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
-- 3: Clothing number
-- 4: Clothing color
exports.fivecode_clothing:AddClothing(source, clothType, clothNumber, clothColor)

2.

Remove a player's clothing:

-- 1: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
exports.fivecode_clothing:RemoveClothing(clothType)
-- 1: Player source
-- 2: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
exports.fivecode_clothing:RemoveClothing(source, clothType)

3.

Give yourself a specific clothing item:

-- 1: Clothing type - 'mask', 'helmet', 'glasses', 'ear', 'chain', 'watches', 'bracelet', 'tshirt', 'vest', 'jacket', 'decals', 'bag', 'gloves', 'pants', 'shoes'.
-- 2: Clothing number
-- 3: Clothing color
/giveclothing type number color

4.

Add a custom name and image to a specific clothing item:

  1. Add a custom name or image to a specific clothing item: - Simply duplicate an existing one from the config for easier setup.

Config.CustomName = {
    {
        Label = 'Gucci Pants',
        Image = 'gucci_p',
        Type = 'pants',
        Ped = 'mp_m_freemode_01',
        Clothing = {
            Type = 17,
            Color = 3
        },
    },
    {
        Label = 'Pig mask',
        Image = false,
        Type = 'mask',
        Ped = 'mp_m_freemode_01',
        Clothing = {
            Type = 1,
            Color = 2
        },
    },
    {
        Label = 'Example Name',
        Image = 'example_image',
        Type = 'shoes',
        Ped = 'mp_m_freemode_01',
        Clothing = {
            Type = 4,
            Color = 1
        },
    },
}
  1. Enjoy!


Now after gving yourself the item with or removing the clothing from your character it will have a new name, image or both.

If you need help with anything, do not hesitate and open a support ticket in our .

discord
How can I add clothing to a player using another script?
How can I remove a player's clothing using another script?
How can I give myself a specific clothing item?
How can I add a custom name and image to a specific clothing item?
/giveclothing command