Installation
Every Duck resource installs the same way. Resource-specific steps live on that resource's own installation page.
Requirements
All Duck resources depend on ox_lib. Some resources have additional dependencies, listed on their overview page.
Steps
- Download the resource from your Tebex account and unzip it.
- Drop the folder into your server's
resourcesdirectory. Keep the folder name exactly as shipped — renaming it breaks exports, statebags and keybind registration. - Make sure
ox_libstarts before the resource in yourserver.cfg. - Add the resource to
server.cfg.
ensure ox_lib
ensure duck_speedlimiterLocale
Duck resources use the ox_lib locale system. Copy locales/en.json to your language code, translate it, and set the locale in server.cfg:
setr ox:locale "en"Updating
- Stop the resource, or the server.
- Replace the folder with the new version.
- Copy your old
config/config.luavalues across — do not drop the old file in wholesale, as new options are added between versions. The changelog lists any config changes.
Common problems
The resource fails to start
Check the server console for the actual error. The usual causes are ox_lib not starting first, or the folder having been renamed.
Keybinds do nothing
FiveM caches keybinds per player. After a first install, players may need to set the key manually once in Settings → Key Bindings → FiveM. Changing Config.Keybinds after a player has already bound a key will not override their choice — that is FiveM behaviour, not a bug.
attempt to index a nil value (global 'lib')
ox_lib is not running, or is starting after the resource.