Skip to content

General Settings

All configuration lives in config.lua. Both server and client scripts load this file, so changes affect both sides. Restart the resource after editing.

Debug & Logging

lua
Config.debug = false
Config.logs  = false
OptionPurposeDefault
Config.debugEnable debug output in server/client consolefalse
Config.logsEnable loggingfalse

SQL Driver

lua
Config.sqlDriver = "mysql"
ValueUses
"mysql"mysql-async (MySQL.Sync.*)
"oxmysql"oxmysql (exports.oxmysql:query_async)
"<resource>"Any resource that exposes executeSync (custom drivers)

The driver name must match the resource started in your server.cfg. Ensure it starts before ls_lootables.

Interaction

lua
Config.interactionDistance   = 2.0
Config.showLootNotifications = true
Config.showCooldownMessages  = true
Config.removeRequiredItems   = true
OptionPurposeDefault
interactionDistanceHow close (meters) a player must be to see the prompt and interact2.0
showLootNotificationsShow a toast notification when an item is picked uptrue
showCooldownMessagesShow remaining time when a box is on cooldowntrue
removeRequiredItemsConsume required items from inventory when the box is openedtrue

Player Visibility

lua
Config.invisible = {
    enabled = false,
    alpha   = 50,
}

When enabled = true, the player becomes semi-transparent while a box is open.

OptionPurposeDefault
enabledToggle player invisibility while lootingfalse
alphaTransparency level (0 = invisible, 255 = fully visible)50

Drop Props

lua
Config.dropProps = {
    freeze      = true,
    collision   = true,
    spawnRadius = 2.0,
}

Controls how loot item props behave when spawned after opening a box.

OptionPurposeDefault
freezePrevent props from falling due to physicstrue
collisionEnable collision for spawned loot propstrue
spawnRadiusMax distance from the box (meters) where props appear2.0

Robicore