> For the complete documentation index, see [llms.txt](https://nayzeee-dev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nayzeee-dev.gitbook.io/docs/nayzeee-scripts/nayzeee-ped-menu/configuration.md).

# Configuration

<details>

<summary>View Full Config</summary>

```lua
Config = {}

-- Enable debug messages in F8 console (set to true for development)
Config.Debug = false

--[[ 
    ███████╗██████╗  █████╗ ███╗   ███╗███████╗██╗    ██╗ ██████╗ ██████╗ ██╗  ██╗
    ██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝██║    ██║██╔═══██╗██╔══██╗██║ ██╔╝
    █████╗  ██████╔╝███████║██╔████╔██║█████╗  ██║ █╗ ██║██║   ██║██████╔╝█████╔╝ 
    ██╔══╝  ██╔══██╗██╔══██║██║╚██╔╝██║██╔══╝  ██║███╗██║██║   ██║██╔══██╗██╔═██╗ 
    ██║     ██║  ██║██║  ██║██║ ╚═╝ ██║███████╗╚███╔███╔╝╚██████╔╝██║  ██║██║  ██╗
    ╚═╝     ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝ ╚══╝╚══╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
]]

Config.Framework = 'esx'
--[[
    Options:
    - 'qbcore'  → QBCore / QBox Framework
    - 'esx'     → ESX Legacy (latest)
    - 'oldesx'  → ESX 1.0 Final or older
]]

--[[ 
    ███████╗██╗  ██╗██╗███╗   ██╗    ██████╗ ███████╗██╗      ██████╗  █████╗ ██████╗ 
    ██╔════╝██║ ██╔╝██║████╗  ██║    ██╔══██╗██╔════╝██║     ██╔═══██╗██╔══██╗██╔══██╗
    ███████╗█████╔╝ ██║██╔██╗ ██║    ██████╔╝█████╗  ██║     ██║   ██║███████║██║  ██║
    ╚════██║██╔═██╗ ██║██║╚██╗██║    ██╔══██╗██╔══╝  ██║     ██║   ██║██╔══██║██║  ██║
    ███████║██║  ██╗██║██║ ╚████║    ██║  ██║███████╗███████╗╚██████╔╝██║  ██║██████╔╝
    ╚══════╝╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝    ╚═╝  ╚═╝╚══════╝╚══════╝ ╚═════╝ ╚═╝  ╚═╝╚═════╝ 
]]

Config.NormalSkinCustomEvent = ''
--[[
    Leave EMPTY if using esx_skin - the script handles it automatically!
    
    Only set this if you use a different skin system:
    - 'illenium-appearance:client:reloadSkin'       → Illenium Appearance
    - 'fivem-appearance:client:reloadSkin'          → FiveM Appearance
    - 'qb-clothing:client:revertToNormalSkin'       → QBCore Clothing
]]

--[[ 
     ██████╗ ██████╗ ███╗   ███╗███╗   ███╗ █████╗ ███╗   ██╗██████╗ ███████╗
    ██╔════╝██╔═══██╗████╗ ████║████╗ ████║██╔══██╗████╗  ██║██╔══██╗██╔════╝
    ██║     ██║   ██║██╔████╔██║██╔████╔██║███████║██╔██╗ ██║██║  ██║███████╗
    ██║     ██║   ██║██║╚██╔╝██║██║╚██╔╝██║██╔══██║██║╚██╗██║██║  ██║╚════██║
    ╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ╚═╝ ██║██║  ██║██║ ╚████║██████╔╝███████║
     ╚═════╝ ╚═════╝ ╚═╝     ╚═╝╚═╝     ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═════╝ ╚══════╝
]]

Config.EnableCommand = true

Config.Commands = {
    openMenu = 'pedmenu',      -- Command to open the ped menu
    givePed = 'giveplayerped', -- Admin command to give peds to players
}

--[[ 
     █████╗ ██████╗ ███╗   ███╗██╗███╗   ██╗
    ██╔══██╗██╔══██╗████╗ ████║██║████╗  ██║
    ███████║██║  ██║██╔████╔██║██║██╔██╗ ██║
    ██╔══██║██║  ██║██║╚██╔╝██║██║██║╚██╗██║
    ██║  ██║██████╔╝██║ ╚═╝ ██║██║██║ ╚████║
    ╚═╝  ╚═╝╚═════╝ ╚═╝     ╚═╝╚═╝╚═╝  ╚═══╝
]]

Config.AdminGroups = {
    'admin',
    'mod',
    'superadmin',
    'god',
}

--[[ 
     ██████╗ █████╗ ███╗   ███╗███████╗██████╗  █████╗ 
    ██╔════╝██╔══██╗████╗ ████║██╔════╝██╔══██╗██╔══██╗
    ██║     ███████║██╔████╔██║█████╗  ██████╔╝███████║
    ██║     ██╔══██║██║╚██╔╝██║██╔══╝  ██╔══██╗██╔══██║
    ╚██████╗██║  ██║██║ ╚═╝ ██║███████╗██║  ██║██║  ██║
     ╚═════╝╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝
]]

Config.Camera = {
    distance = 2.5,         -- Distance from player
    height = 0.3,           -- Camera height offset
    angle = 90.0,           -- Angle from player (90 = side view)
}

Config.Rotation = {
    speed = 5.0,            -- Degrees per rotation tick
    interval = 50,          -- Milliseconds between rotation ticks (lower = faster)
}

--[[ 
    ██╗   ██╗ █████╗ ██████╗ ██╗ █████╗ ████████╗██╗ ██████╗ ███╗   ██╗███████╗
    ██║   ██║██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝██║██╔═══██╗████╗  ██║██╔════╝
    ██║   ██║███████║██████╔╝██║███████║   ██║   ██║██║   ██║██╔██╗ ██║███████╗
    ╚██╗ ██╔╝██╔══██║██╔══██╗██║██╔══██║   ██║   ██║██║   ██║██║╚██╗██║╚════██║
     ╚████╔╝ ██║  ██║██║  ██║██║██║  ██║   ██║   ██║╚██████╔╝██║ ╚████║███████║
      ╚═══╝  ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝╚═╝  ╚═╝   ╚═╝   ╚═╝ ╚═════╝ ╚═╝  ╚═══╝╚══════╝
]]

Config.EnableVariations = true

Config.ComponentNames = {
    [0] = 'Face',
    [1] = 'Mask',
    [2] = 'Hair',
    [3] = 'Torso',
    [4] = 'Legs',
    [5] = 'Bags',
    [6] = 'Shoes',
    [7] = 'Accessories',
    [8] = 'Undershirt',
    [9] = 'Armor',
    [10] = 'Decals',
    [11] = 'Tops',
}

--[[ 
    ███████╗ █████╗ ██╗   ██╗ ██████╗ ██████╗ ██╗████████╗███████╗
    ██╔════╝██╔══██╗██║   ██║██╔═══██╗██╔══██╗██║╚══██╔══╝██╔════╝
    █████╗  ███████║██║   ██║██║   ██║██████╔╝██║   ██║   █████╗  
    ██╔══╝  ██╔══██║╚██╗ ██╔╝██║   ██║██╔══██╗██║   ██║   ██╔══╝  
    ██║     ██║  ██║ ╚████╔╝ ╚██████╔╝██║  ██║██║   ██║   ███████╗
    ╚═╝     ╚═╝  ╚═╝  ╚═══╝   ╚═════╝ ╚═╝  ╚═╝╚═╝   ╚═╝   ╚══════╝
]]

Config.SpawnWithFavoritePed = true     -- Spawn with favorite ped on player load
Config.SpawnFavoriteDelay = 5000       -- Delay in ms before applying favorite ped (5 seconds default)

--[[ 
    ██╗      ██████╗  ██████╗ █████╗ ██╗     ███████╗███████╗
    ██║     ██╔═══██╗██╔════╝██╔══██╗██║     ██╔════╝██╔════╝
    ██║     ██║   ██║██║     ███████║██║     █████╗  ███████╗
    ██║     ██║   ██║██║     ██╔══██║██║     ██╔══╝  ╚════██║
    ███████╗╚██████╔╝╚██████╗██║  ██║███████╗███████╗███████║
    ╚══════╝ ╚═════╝  ╚═════╝╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝
]]

Config.Locales = {
    no_player_skins = 'You don\'t have any saved peds!',
    skin_added = 'Ped added to your menu!',
    skin_deleted = 'Ped removed from your menu!',
    skin_added_fav = 'Ped set as favorite!',
    skin_exists = 'This ped is already in your menu!',
    invalid_model = 'Invalid ped model!',
    admin_skin_added = 'Ped given to player successfully!',
    target_skin_added = 'You received a new ped!',
}
```

</details>
