Dependency Override
How to override auto-detected dependencies
By default, zyke_lib automatically detects which systems you are running (framework, inventory, target, etc.). If auto-detection fails or you want to explicitly specify a system, you can configure this in dependency_override.lua.
#Common Issues
First, we will cover common issues in case you were led here and don't want to submerge yourself in the configs.
#X is taking a long time to start...
If you have a misconfigured system and keep a bunch of old files on your server, you may experience a wall of warnings in your consoles waiting for other systems to start. This issue could often arise if you keep two scripts that we both support, like two fuelsystems, in your server, even if you are just using one of them. Our lib will, by default, attempt to wait for the resource to start.
#Configurations
Each system supports the following values:
| Value | Description |
|---|---|
"auto" | Automatically detect which system to use (default) |
"<resource_name>" | Use a specific resource (will wait for it to start) |
"none" | Skip detection entirely, fall back to your framework's built-in system |
"none" is only valid for optional systems (gang, fuel, death, banking). Setting it means the library will use your framework's default behavior instead.
These must always resolve to a valid resource.
| System | Options |
|---|---|
framework | "auto", "es_extended", "qb-core" |
inventory | "auto", "qs-inventory", "ox_inventory", "tgiann-inventory", "codem-inventory", "core_inventory" |
target | "auto", "ox_target", "qb-target" |
#Optional Systems
These can be set to "none" to use your framework's built-in system.
| System | Options |
|---|---|
gang | "auto", "none", "zyke_gangs" |
fuel | "auto", "none", "ox_fuel", "LegacyFuel", "cdn-fuel", "lc_fuel" |
death | "auto", "none", "wasabi_ambulance" |
banking | "auto", "none", "Renewed-Banking", "RxBanking", "okokBanking", "bablo-banking" |
#Example
Full configuration example for
dependency_override.lua:
#Troubleshooting
If your server gets stuck on the dependency loading step, set the appropriate system to the exact resource name you use instead of "auto".
