Initial diagnosis
Before looking for a specific error, follow these steps to get clear information about what is failing:- Check the server console. Open your FiveM server console and look for lines containing
ERROR,WARN, or your resource name. Lua errors usually indicate the exact file and line where the problem occurs. - Enable debug mode. In your
shared/config.lua, setConfig.Debug = true. This enables detailed logs in both the server console and the client console (F8 in-game), making it easier to trace the script’s execution flow.shared/config.lua - Verify the load order. Make sure all resources the script depends on (such as
es_extended,ox_lib,oxmysql) are started before the Zyra Store script in yourserver.cfg.
Common problems
The resource does not start
The resource does not start
Symptom: The resource does not appear as started in the console or shows an error when the server starts.Solutions:
- Verify that the resource folder name matches exactly the name declared in
fxmanifest.lua(thenamefield). Uppercase and lowercase letters matter. - Make sure the line
ensure zyra-mi-script(orstart zyra-mi-script) is present in yourserver.cfg. - Check that the load order is correct: dependencies must start before the Zyra script.
- Verify that the resource folder is located inside
resources/or a correctly referenced subfolder withensureinserver.cfg.
Error: 'es_extended' is not started
Error: 'es_extended' is not started
Symptom: The console shows
SCRIPT ERROR: 'es_extended' is not started when trying to start the resource.Solutions:- Make sure
es_extendedis started before the Zyra script in yourserver.cfg. - Verify that
es_extendedhas no errors of its own preventing it from starting. - If you use QBCore instead of ESX, make sure you have correctly configured the framework in
Config.Frameworkinsideshared/config.lua.
Error: attempt to index a nil value (global 'Config')
Error: attempt to index a nil value (global 'Config')
Symptom: The console shows
attempt to index a nil value (global 'Config') in some resource file.Solutions:- The
shared/config.luafile is not loading. Openfxmanifest.luaand verify thatshared/config.luais listed in theshared_scriptssection before any other file that usesConfig. - Confirm that the
shared/config.luafile has no syntax errors preventing it from loading. Check that all tables are properly closed. - Also check that the mandatory configuration fields are present:
Config.framework,Config.locale,Config.permissions, andConfig.features.
Notifications do not appear
Notifications do not appear
Symptom: Actions execute correctly but the player sees no on-screen notification.Solutions:
- If
Config.UseOxLib = true, verify thatox_libis started and working correctly. - If
Config.UseOxLib = false, the system will use native FiveM notifications. Make sure no other resource is blocking or overridingDrawNotification. - Check that the
ox_libresource is declared as a dependency in the script’sfxmanifest.luaand that it loads before it.
ACE permissions are not working
ACE permissions are not working
Symptom: Players cannot access commands or restricted functions even though they have the assigned group.Solutions:
- Verify the exact syntax in
server.cfg. The correct format is: - Check that the group defined in
server.cfgmatches the one configured inConfig.permissionsinsideshared/config.lua. - Use the
list_acescommand in the server console to verify that permissions are registered correctly. - Use
list_principalsto confirm that the player is assigned to the correct group. - Restart the server or reload the configuration after modifying
server.cfg.
The /script-admin, /reload-config, or /toggle-feature commands do not respond
The /script-admin, /reload-config, or /toggle-feature commands do not respond
Symptom: When executing one of the script commands in chat, nothing happens or a permission denied message appears.Solutions:
- Make sure the player has the necessary ACE permissions assigned in
server.cfg(see the ACE permissions section above). - Verify that
Config.permissionsinshared/config.luapoints to the correct group for each command. - Confirm that the resource is active by running
ensure zyra-mi-scriptin the server console. - For
/reload-config, make sureshared/config.luacontains no syntax errors before reloading.
The database does not connect
The database does not connect
Symptom: Errors related to MySQL when starting the resource, such as
connection refused or unknown database.Solutions:- Verify that
oxmysqlis correctly configured inserver.cfgwith the correct connection string: - Confirm that you have imported the
.sqlfile included in the resource into your database before starting it. - Make sure
oxmysqlis started before the Zyra Store script. - Verify that the MySQL user has read and write permissions on the database.
The script works locally but not in production
The script works locally but not in production
Symptom: Everything works in your development environment but fails on the production server.Solutions:
- Verify that the FiveM artifact version in production meets the script’s minimum requirements (check the
fxmanifest.lua). - Check the OneSync configuration on your server. Some scripts require
onesync onoronesync legacyto work correctly on servers with more than 32 players. - Make sure all dependencies (ox_lib, oxmysql, framework) are on the same version in production as they are locally.
Events do not fire between resources
Events do not fire between resources
Symptom: An external resource does not receive events emitted by the Zyra script, or vice versa.Solutions:
- Verify that the event names match exactly (case-sensitive). Client events are
zyra:onScriptReady,zyra:onPlayerAction, andzyra:onResourceStart; server events arezyra:onPlayerConnect,zyra:onAdminAction, andzyra:onDataSync. - Check that the files containing the
AddEventHandlerare declared inclient_scriptsorserver_scriptsinside thefxmanifest.luaof the listening resource. - Confirm that server-side events are not being attempted to listen to on the client, and vice versa.
- If the event is from server to client, make sure to use
TriggerClientEventwith the correctsource.
Conflict with another resource
Conflict with another resource
Symptom: The script fails or behaves unexpectedly only when other resources are active.Solutions:
- Identify the conflicting resource by disabling resources one by one until you find the culprit.
- Look for duplicate event names or exports between resources. If two resources define the same global event, they can interfere with each other.
- Rename conflicting events by adding a unique prefix to the event name in the resource you control.
- Check if any external resource is overriding native FiveM functions that the Zyra script uses.
ox_lib version error
ox_lib version error
Symptom: Errors related to
lib functions that do not exist or behave unexpectedly.Solutions:- Open the Zyra Store script’s
fxmanifest.luaand locate thedependenciesfield. There you will find the minimum required version ofox_lib. - Download and install the correct version of
ox_libfrom its official repository. - Avoid using older versions than required, as they may lack functions the script needs.
Diagnostic commands
You can use the following commands directly in the server console to diagnose and manage the resource state:Get support
If after reviewing this guide you have not been able to resolve the problem, the Zyra Store team is available to help you:Support Discord
Join our Discord server and open a ticket in the technical support channel.
Zyra Store website
Check additional documentation and the latest updates for all our scripts.
When requesting support, always include the full server console error (not just a partial screenshot). Without the complete error message and the affected resource name, we cannot help you efficiently.
