Skip to main content

Configuration

Only two files can be edited:

  • config.lua: commands, scale limits, camera, saving and all text
  • server/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 /givescalemenu on (for grantSeconds).
  • Set self.enabled = true to let every player change their own size within self.min and self.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.

SettingDefaultWhat it does
soundstrueSoft clicks in the menu
baseHeightCm175The height shown at 1.00x (only for display)
pedHeightOffset1.0Keeps scaled characters standing on the ground
offsetRemotePedstrueIf scaled players look like they float or sink to other players, flip this
camera.fov40.0Camera field of view
camera.distance2.9Camera distance at 1.0x
camera.sideShift0.12How 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.