Skip to content

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.lua

Only 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

  1. Restart lumix_bridge, or
  2. Open /lbridge → Modules → select your resource → Apply changes

Checklist

  • [ ] Resource is ensured and started before / with the bridge
  • [ ] Name in shared/modules.lua matches GetCurrentResourceName() / start name
  • [ ] Files exist under modules/<domain>/…
  • [ ] Settings row shows OK after Apply

DMCA.com Protection Status

Lumix Scripts operates independently and is not authorized, sponsored, or endorsed by Cfx.re, Rockstar Games, or Take-Two Interactive.