Adding modules
Use this when your server runs a resource that is not listed yet (custom inventory, notify, …).
1. Register it in the catalog
Open shared/modules.lua and find the domain (e.g. inventory, notify).
Add the resource name to resources:
lua
resources = {
'ox_inventory',
'qb-inventory',
'my_custom_inventory', -- your resource folder / start name
},If the folder name under modules/ is different from the resource name, use the helper:
lua
P('MyResource', 'my_folder'),2. Add the implementation files
Create:
txt
modules/<domain>/<resourceName>/client.lua
modules/<domain>/<resourceName>/server.luaOnly add the sides that domain needs (some modules are client-only or server-only — match existing folders in that domain).
Copy an existing provider in the same domain as a template (e.g. modules/inventory/ox_inventory/).
3. Apply
- Restart
lumix_bridge, or - Open
/lbridge→ Modules → select your resource → Apply changes
Checklist
- [ ] Resource is
ensured and started before / with the bridge - [ ] Name in
shared/modules.luamatchesGetCurrentResourceName()/ start name - [ ] Files exist under
modules/<domain>/… - [ ] Settings row shows OK after Apply