Configuration
Configuration of SCode Ped Scale
The settings are in configs/config.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 |
|---|---|
| Language of the menu and messages. |
| Command names and the ACE group that may use them. |
| Turns height on/off and sets its limits. |
| Turns weight on/off and sets its limits. |
| Name of the state bag used for syncing. You don't need to change it. |
Commands
With the default config:
Command | Description |
|---|---|
| Sets a player's height, for example |
| Sets a player's weight, for example |
| 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".
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