OrigenNetwork
Docs

Configuration · origen_clothing

Configuration is split across several files inside config/:

  • config/_main.lua — general settings, framework, permissions, payment, prices
  • config/stores.lua — store types and their blip/label definitions
  • config/cameras.lua — camera zones for the dressing room UI
  • config/jobOuffits.lua — job outfit configuration
  • config/peds.lua — ped model definitions
  • config/appearance.lua — appearance component configuration

config/_main.lua

General

VariableDefaultDescription
Config.Language'en'UI language — 'en' | 'es'
Config.DebugtrueEnable debug logging to console
Config.UseOnlyInputsfalseUse text inputs instead of item images to select clothes
Config.FixWetClothPhysicstrueFix wet clothes physics when it rains

Commands

VariableDefaultDescription
Config.managementCommand'clothingadmin'Open the store management menu
Config.reloadSkinCommand'reloadskin'Reload the player's appearance
Config.openClothingCommand'skin'Open the clothing/character menu
Config.openPedsMenuCommand'pedmenu'Open the peds selection menu

Permissions

Groups allowed to access the admin/management menu. Leave empty {} to allow all players:

lua
Config.Permissions = {
    'god',
    'superadmin',
    'admin',
}

Payment

VariableDefaultDescription
Config.DefaultPaymentMethod'bank'Default account used for purchases

Enabled payment methods:

lua
Config.PaymentMethods = {
    ['cash'] = true,
    ['bank'] = true,
}

Prices

VariableDefaultDescription
Config.DefaultPrice20Fallback price for any item without a category price

Default price per category:

lua
Config.DefaultPriceByCategory = {
    ['masks']     = 100,
    ['jackets']   = 100,
    ['shirts']    = 100,
    ['torsos']    = 100,
    ['vest']      = 100,
    ['legs']      = 100,
    ['shoes']     = 100,
    ['bags']      = 100,
    ['neck']      = 100,
    ['decals']    = 100,
    ['hats']      = 100,
    ['glasses']   = 100,
    ['earrings']  = 100,
    ['watches']   = 100,
    ['bracelets'] = 100,
}

Remove item defaults

Defines the hash used to "remove" each clothing category for male and female freemode models. These are the values applied when a player removes an item:

lua
Config.RemoveItem = {
    [`mp_m_freemode_01`] = {
        ['masks']    = 'none--1--0--0',
        ['torsos']   = 'none--3--0--0',
        ['legs']     = 'none--4--0--0',
        ['bags']     = 'none--5--0--0',
        ['shoes']    = 'none--6--0--0',
        ['neck']     = 'none--7--0--0',
        ['shirts']   = 'none--8--0--0',
        ['vest']     = 'none--9--0--0',
        ['decals']   = 'none--10--0--0',
        ['jackets']  = 'none--11--0--0',
        ['hats']     = 'none--1000---1--0',
        ['glasses']  = 'none--1001---1--0',
        ['earrings'] = 'none--1002---1--0',
        ['watches']  = 'none--1006---1--0',
        ['bracelets']= 'none--1007---1--0',
    },
    -- Female model uses same structure
}

config/stores.lua

Defines available store types with their blip settings:

TypeBlip spriteDescription
clothes73Clothing store
barber71Barber shop
tattoos75Tattoo parlor
masks362Mask store

Stores themselves are managed in-game via the admin panel (/clothingadmin) and persisted in the origen_clothing_stores DB table.


config/cameras.lua

Defines camera positions for each body zone in the dressing room UI. Each zone points to a bone ID, camera offset, target offset and field of view.

The whole key sets the default zone used when no specific zone is active (defaults to ZONE_SHIRTS). Several zones are aliases — e.g. ZONE_MASKS = "ZONE_NOSE".

Do not modify the bottom section of cameras.lua that resolves string aliases — it must run after all zones are defined.