Skip to main content
Zyra Store scripts are designed to work with the most popular FiveM frameworks: ESX, QBCore, and Standalone. Each operating mode requires a specific configuration in the shared/config.lua file. In this guide you will find configuration details, code examples, and important considerations for each framework.

Configuration with ESX

To use the script with ESX, set the following value in shared/config.lua:
shared/config.lua
Prerequisite: The es_extended resource must be active and loading before the Zyra Store script in your server.cfg.

ESX integration example

The following snippet shows how Zyra Store scripts access the ESX shared object and react to the player load event:
client/main.lua

ESX Legacy vs ESX 1.9+

If you use ESX Legacy (versions prior to 1.9), some events and functions may differ slightly. Zyra Store scripts are optimized for ESX 1.9 or higher. If you experience problems with an older version, it is recommended to update es_extended to the most recent version before continuing.

Switching frameworks

If you need to change your server’s framework (for example, migrating from ESX to QBCore), it is not necessary to reinstall the script. Simply update the Config.Framework value in the resource’s shared/config.lua file and restart the resource:
shared/config.lua
Then restart the resource from the server console or txAdmin:
Zyra Store scripts automatically detect the configured framework at initialization and load the corresponding functions without needing to modify any other files.
Do not mix framework values. You must set exactly one single value in Config.Framework. Leaving the field empty, with an incorrect value, or with references to multiple frameworks will cause runtime errors and unexpected script behavior.

See also: Configuration file.