Default Variants

Configuring "No Clothing" Variants

The Clothing Menu allows you to define the appearance of your character when they are not wearing a specific clothing item. This is particularly useful for roleplay servers or scenarios where players might need to remove certain articles of clothing. The Config.defaultVariants table is used to set these "no clothing" configurations.

Structure of No Clothing Variants

Config.defaultVariants = {
    [`gender`] = {  -- 'mp_m_freemode_01' for male, 'mp_f_freemode_01' for female
        [clothing_item] = {
            table = {
                { drawable = drawable_id, id = texture_id, texture = palette_id },
                -- More items (optional)
            }, 
            animation = 'animation_name',
        },
        -- More clothing items...
    }
}
  • gender: A string representing the player's gender. Use 'mp_m_freemode_01' for male and 'mp_f_freemode_01' for female.

  • clothing_item: A string representing the type of clothing item (e.g., top, pants, shoes).

  • table: An array containing tables that define the "no clothing" appearance for that item. Each table has the following properties:

    • drawable: The drawable ID of the clothing component.

    • id: The texture ID of the clothing component.

    • texture: The palette ID of the clothing component (if applicable).

  • animation: The name of the animation to play when equipping or removing the item (if applicable).

Example Configuration:

Config.defaultVariants = {
    ['mp_m_freemode_01'] = { -- Male
        ['top'] = { 
            table = {
                { drawable = 3, id = 15, texture = 0 },  -- Bare torso
            },
            animation = 'top'
        },
        ['pants'] = {
            table = {
                { drawable = 15, id = 0, texture = 0 },  -- Underwear
            },
            animation = 'pants'
        },
        -- ... other clothing items
    },
    ['mp_f_freemode_01'] = { -- Female
        -- ... similar configuration for female model
    }
}

Flexibility of the table Property

The table property allows you to define multiple layers or variations for the "no clothing" appearance. Each entry within the table array represents a different layer or component, and they are applied in the order they are listed.

Important Notes:

  • You'll need to research and find the appropriate drawable, id, and texture values to achieve the desired "no clothing" appearance for each item and gender.

  • Test your changes thoroughly in-game to ensure everything works as expected.

  • Please note that clothing order depends on each server clothing pack.

Last updated