server.lua
Main Configuration Table
- The
Configtable holds all key configuration settings. Below is an explanation of each parameter and its purpose.
Parameters
| Parameter | Type | Default Value | Description |
|---|---|---|---|
ItemEnabled | boolean | true | Determines if the item functionality is enabled. |
Item | string | "whoami" | The name of the item. Used only if ItemEnabled is set to true. |
CommandEnabled | boolean | false | Determines if the command functionality is enabled. |
Command | string | "whoami" | The name of the command. Used only if CommandEnabled is set to true. |
Example Configuration
- Below is an example of how the configuration may look in your
server.luafile:
Lua
Config = {}
-- Enable or disable item functionality
Config.ItemEnabled = true -- Set to false to disable item functionality
-- Name of the item (used only if ItemEnabled is true)
Config.Item = "whoami"
-- Enable or disable command functionality
Config.CommandEnabled = false -- Set to true to enable the command functionality
-- Name of the command (used only if CommandEnabled is true)
Config.Command = "whoami"