SCode StudiosSCodeDocs
Tebex Store

Configuration

Configuration of SCode Ped Scale

The settings are in configs/config.lua.

Lua
config = {}

config.lang = "en"

config.commands = {
    setWeight = { command = "kilo", permission = "group.admin" },
    setHeight = { command = "boy", permission = "group.admin" },
    givePedscale = { command = "givepedscale", permission = "group.admin" },
}

config.height = {
    active = true,
    min = 0.5,
    max = 1.5,
}

config.weight = {
    active = true,
    min = 0.8,
    max = 1.15,
}

config.stateName = "scode:pedScale:weightHeight"

Option

Description

config.lang

Language of the menu and messages. en and tr are included.

config.commands

Command names and the ACE group that may use them.

config.height

Turns height on/off and sets its limits. 1.0 is the normal size.

config.weight

Turns weight on/off and sets its limits. 1.0 is the normal width.

config.stateName

Name of the state bag used for syncing. You don't need to change it.

Commands

With the default config:

Command

Description

/boy [player id] [height]

Sets a player's height, for example /boy 12 1.1

/kilo [player id] [weight]

Sets a player's weight, for example /kilo 12 0.9

/givepedscale [player id]

Opens the Ped Scale menu for that player

The value must be between the min and max set above, otherwise the command is refused with a message. A command is only registered if its feature is active.

Languages

Texts are in languages/en.lua and languages/tr.lua. To add a language, copy one of them, change config.langs.en to your code (for example config.langs.de) and set config.lang = "de".

Lua
config.langs.en = {
    COMMAND_SET_HEIGHT = "Sets the player's height",
    COMMAND_SET_WEIGHT = "Sets the player's weight",
    COMMAND_WRONG_VALUE = "Invalid value, please enter a numeric value",
    COMMAND_VALUE_MAX = "%s value can be a maximum of %.2f",
    COMMAND_VALUE_MIN = "%s value can be a minimum of %.2f",
    HEIGHT_LABEL = "Height (cm):",
    WEIGHT_LABEL = "Weight (kg):",
    UI_TITLE = "Ped Settings",
    -- ...
}

Last updated: December 6, 2026