shared/config.lua file. In this guide you will find configuration details, code examples, and important considerations for each framework.
- ESX
- QBCore
- Standalone
Configuration with ESX
To use the script with ESX, set the following value inshared/config.lua:shared/config.lua
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 theConfig.Framework value in the resource’s shared/config.lua file and restart the resource:
shared/config.lua
See also: Configuration file.
