uyuyorumstore
um-clothingCustomize

Config

How to configure um-clothing

Paths

config.lua

Config

config.lua
return {
    Debug           = false,

    Locale          = GetConvar('ox:locale', 'en'),

    Framework       = 'auto',

    Money           = {
        type = 'cash', -- cash or bank or free (free disables all charges)
        -- Price per shop type, charged on save (purchase) — browsing is free.
        -- Set to 0 to make that shop free.
        prices = {
            clothing = 1000,
            barber   = 500,
            tattoo   = 750,
            surgeon  = 2000,
        },
    },

    -- Max saved outfits per character. 0 = unlimited.
    OutfitsMaxSlot  = 3,

    DefaultSettings = {
        position = 'left',        -- left or right
        color    = 'green',       -- default, blue, violet, rose, green
        theme    = 'transparent', -- transparent, mantine, custom
    },

    FirstCharacter  = {
        ped = true,         -- true or false mp_m_freemode_01 or mp_f_freemode_01
        customPeds = false, -- true or false custom ped list shared/peds.lua
    },

    -- true: lock the ped into our idle pose/facial animation while the menu is open.
    -- false: never touch the ped's movement or facial animation in any way.
    FreezePedAnim   = true,

    Blips           = {
        clothing = { sprite = 73, color = 18, scale = 1, enabled = true },
        barber   = { sprite = 71, color = 0, scale = 0.8, enabled = true },
        tattoo   = { sprite = 75, color = 4, scale = 0.8, enabled = true },
        surgeon  = { sprite = 102, color = 4, scale = 0.8, enabled = true },
    },

    -- Optional clothing/prop preview thumbnails shown next to each slot.
    -- Generate them with a greenscreen tool (bentixcs fivem-greenscreener forked um-thumbnail-clothing)
    -- Tokens: {gender} (male/female), {id}, {drawable}, {texture}.
    -- fivemanage example: https://r2.fivemanage.com/your_dashboard_url/clothing
    -- static example: https://cfx-nui-clothing-images/images/clothing
    Images          = {
        enabled          = false,
        baseUrl          = 'https://cfx-nui-clothing-images/images/clothing',
        componentPattern = '{gender}_{id}_{drawable}.png',
        propPattern      = '{gender}_prop_{id}_{drawable}.png',
    },

    Commands        = {
        open        = { name = 'skinmenu', desc = 'Open the appearance menu', perm = 'group.admin' },
        reload      = { name = 'reloadskin', desc = 'Reapply your stored skin', perm = nil },
        customTheme = { name = 'customtheme', desc = 'Open the theme builder', perm = 'group.admin' },
    },

    HideHud         = function(bool)
        if bool then
            -- when bool is true, hide the hud
            DisplayRadar(false)
            return
        end
        -- when bool is false, show the hud
        DisplayRadar(true)
    end,

    Customization   = {
        ped             = true,
        headBlend       = true,
        faceFeatures    = true,
        headOverlays    = true,
        hair            = true,
        eyeColor        = true,
        tattoos         = true,

        components      = true,
        componentConfig = {
            masks          = true,
            upperBody      = true,
            lowerBody      = true,
            bags           = true,
            shoes          = true,
            scarfAndChains = true,
            shirts         = true,
            bodyArmor      = true,
            decals         = true,
            jackets        = true,
        },

        props           = true,
        propConfig      = {
            hats      = true,
            glasses   = true,
            ear       = true,
            watches   = true,
            bracelets = true,
        },

        enableExit      = true,

        hasTracker      = false,

        -- true: fade follows the hairstyle automatically and the Fade selector is hidden.
        -- false: no automatic fade; a manual Fade selector appears in the Hair menu.
        automaticFade   = false,

    },

    Cameras         = nil,
}

On this page