Command Palette
Search for a command to run...
MAIN SETTINGS#
The main configuration file (config/main.lua) controls debug mode, camera settings, commands, and core behavior.
Debug Mode#
config/main.luaConfig.Debug = false
Enable debug mode to see additional console output for troubleshooting.
| Value | Description |
|---|---|
true | Enable debug logging |
false | Disable debug logging (production) |
Face Settings#
Configure the limits for face customization sliders:
config/main.luaConfig.FaceSettings = { face = { min = 0, max = 45 }, -- Face 1 (Father) face2 = { min = 0, max = 45 }, -- Face 2 (Mother) race = { min = 0, max = 45 } -- Race/ethnicity }
| Setting | Min | Max | Description |
|---|---|---|---|
face | 0 | 45 | First parent face options |
face2 | 0 | 45 | Second parent face options |
race | 0 | 45 | Race/ethnicity options |
Clothes Toggle Functions#
Configure what happens when players toggle clothes on/off in the menu:
config/main.luaConfig.ChangeClothesState = { Cap = function(ped) ClearPedProp(ped, 0) -- Remove hat end, Glasses = function(ped) ClearPedProp(ped, 1) -- Remove glasses end, Closet = function(ped) -- Remove shirt/jacket SetPedComponentVariation(ped, 11, 15, 0, 2) SetPedComponentVariation(ped, 8, 15, 0, 2) SetPedComponentVariation(ped, 3, 15, 0, 2) end, Shoe = function(ped) SetPedComponentVariation(ped, 6, 34, 0, 2) -- Remove shoes end }
These functions are called when players click the clothes on/off toggles in the UI.
Clothes Download Command#
Enable or disable the clothes preview download command:
config/main.luaConfig.ClothesDownload = { enable = true, command = 'downloadclothes' }
| Option | Type | Default | Description |
|---|---|---|---|
enable | boolean | true | Enable the download command |
command | string | 'downloadclothes' | Command name to trigger download |
This command downloads clothing preview images for offline use or UI customization.
Routing Bucket#
Isolate players during character creation to prevent interaction with the world:
config/main.luaConfig.Bucket = { Enable_on_First_Character = true, BucketEnable_Command = 'onex-creation:server:ChangeRoutingBucket', BucketDisable_Command = 'onex-creation:server:ResetRoutingBucket' }
| Option | Type | Default | Description |
|---|---|---|---|
Enable_on_First_Character | boolean | true | Use routing bucket for new characters |
BucketEnable_Command | string | event | Event to enable bucket |
BucketDisable_Command | string | event | Event to disable bucket |
Routing buckets prevent other players from seeing or interacting with a player during character creation.
Camera Offsets#
Configure camera positions for different viewing angles:
config/main.luaConfig.CameraOffsets = { [1] = { x = 0.0, y = 0.9, z = 0.65 }, -- Face view [2] = { x = 0.0, y = 1.8, z = 0.2 }, -- Full body [3] = { x = 0.0, y = 1.2, z = -0.5 }, -- Lower body [4] = { x = 0.5, y = 0.8, z = 0.3 }, -- Side view [5] = { x = -0.5, y = 0.8, z = 0.3 } -- Other side }
| Camera | X | Y | Z | Best For |
|---|---|---|---|---|
| 1 | 0.0 | 0.9 | 0.65 | Face, hair, makeup |
| 2 | 0.0 | 1.8 | 0.2 | Full body overview |
| 3 | 0.0 | 1.2 | -0.5 | Pants, shoes |
| 4 | 0.5 | 0.8 | 0.3 | Left side view |
| 5 | -0.5 | 0.8 | 0.3 | Right side view |
Utility Commands#
Enable or disable utility commands and set their names:
config/main.luaConfig.UitilityCommands = { admin_creation = { active = true, command = 'acreation' }, Refreshskin = { active = true, command = 'refreshskin' }, Propfix = { active = true, command = 'propfix' } }
| Command | Default Name | Description |
|---|---|---|
admin_creation | /acreation | Open admin creation menu (requires group.admin) |
Refreshskin | /refreshskin | Reload player's skin from database |
Propfix | /propfix | Fix attached props/accessories |
Image Scale Tree#
Configure preview image scaling and positioning for each category:
config/main.luaConfig.ImageScaleTree = { face_skin = { scale = 1.0, offsetX = 0, offsetY = 0 }, mask = { scale = 1.2, offsetX = 0, offsetY = -10 }, hair = { scale = 1.1, offsetX = 0, offsetY = -5 }, torso = { scale = 0.8, offsetX = 0, offsetY = 20 }, pants = { scale = 0.7, offsetX = 0, offsetY = 40 }, shoes = { scale = 0.9, offsetX = 0, offsetY = 50 }, -- ... more categories }
| Property | Type | Description |
|---|---|---|
scale | number | Image scale multiplier |
offsetX | number | Horizontal offset in pixels |
offsetY | number | Vertical offset in pixels |
Auto Camera Change#
Automatically switch camera angles when changing categories:
config/main.luaConfig.AutoCameraChange = { Enable = true, CategoryCameras = { face_skin = 1, mask = 1, hair = 1, torso = 2, pants = 3, shoes = 3, hat = 1, glass = 1, -- ... more mappings } }
| Option | Type | Default | Description |
|---|---|---|---|
Enable | boolean | true | Enable automatic camera switching |
CategoryCameras | table | mapped | Category to camera ID mapping |
When enabled, the camera automatically adjusts to show the relevant body part when switching between clothing categories.
Legacy Face Data#
Preserve old face data format for existing characters:
config/main.luaConfig.Stay_on_Old_Face_for_old_characters = true
| Value | Description |
|---|---|
true | Keep legacy face data format for old characters |
false | Convert all characters to new format |
Only set to false after migrating all existing player data to the new schema.