Configuration
Only two files can be edited:
config.lua: commands, scale limits, camera, saving and all textserver/permission.lua: the list of admins by identifier
Commands
config.lua
commands = {
menu = "scalemenu",
giveMenu = "givescalemenu",
setPlayer = "scalePlayer",
resetPlayer = "scaleReset",
},
Who can use the menu
config.lua
admin = { min = 0.1, max = 1.2 }, -- admins, on anyone
self = { enabled = false, min = 0.8, max = 1.2 }, -- any player, on themselves
grant = { min = 0.8, max = 1.2 }, -- a player an admin opened the menu for
grantSeconds = 600, -- how long that menu stays usable
- With
self.enabled = false, only admins can change sizes, plus a player an admin ran/givescalemenuon (forgrantSeconds). - Set
self.enabled = trueto let every player change their own size withinself.minandself.max.
1.0 is normal size.
Saving
config.lua
step = 0.01, -- slider step
persist = true, -- remember the scale between sessions
perCharacter = true, -- per qbx_core character; false = per license
Saved scales are stored on the server. Per-character saving needs qbx_core; without it, the scale is saved per license.
Menu and camera
| Setting | Default | What it does |
|---|---|---|
sounds | true | Soft clicks in the menu |
baseHeightCm | 175 | The height shown at 1.00x (only for display) |
pedHeightOffset | 1.0 | Keeps scaled characters standing on the ground |
offsetRemotePeds | true | If scaled players look like they float or sink to other players, flip this |
camera.fov | 40.0 | Camera field of view |
camera.distance | 2.9 | Camera distance at 1.0x |
camera.sideShift | 0.12 | How far left of centre the character appears |
Text
Everything players see is in lang, including the menu labels, presets, info lines and notifications. Keep the %s and %.2f placeholders.