Skip to main content
The shared/config.lua file is the central configuration point for all Zyra Store scripts. From here you can control the framework the script uses, the interface language, active dependencies, permission groups, and optional features. Any changes you make to this file apply to both the client and the server, as it is loaded in the shared context of the resource.

Full annotated example

Below you will find a representative sample of the file with all its blocks documented:
shared/config.lua

Options reference

The following table describes each key available in the configuration file:

Advanced options

Config.Debug

Enabling Config.Debug = true makes the script print detailed information about each processed event, database query, and client-to-server call. It is very useful during development or for diagnosing problems, but should not be left active in production as it may expose sensitive information in the console and reduce performance.

Config.Features.discord_logs and webhook

To log player actions to Discord, enable discord_logs and provide a valid webhook URL:
The logs will include the player name, their identifier, the action performed, and the timestamp. You can create a webhook from the settings of any text channel in your Discord server at Edit channel → Integrations → Webhooks.
Never share your Discord webhook URL publicly. Anyone with access to that URL can send messages to your channel. If you suspect it has been exposed, delete it from Discord and generate a new one, then update the value in config.lua.
Before updating the script to a new version, always make a backup of your shared/config.lua. Updates may add new keys or change default values; comparing your copy with the new version of the file will allow you to migrate your configuration without losing any custom setting.

See also: