Skip to main content

Requirements

Steps

  1. Drop the nexdev_crutchsystem/ folder into your resources/ tree, e.g.:
  2. Add it to your server.cfg after ox_lib and your inventory:
  3. Register the crutch item in your inventory — see Inventory item below.
  4. Copy the bundled icon into your inventory’s image folder:
    • ox_inventory/web/images/crutch.png
    • qb-inventory/html/images/crutch.png
    The source PNG ships at install/crutch.png inside the resource.
  5. Restart the server.
The UI ships ready to use — there is no build step and nothing to compile.

Inventory item

Pick the snippet that matches your inventory. The full reference lives in install/items.lua inside the resource.

ox_inventory

Add this entry to ox_inventory/data/items.lua:
The server.export points at the existing useCrutch handler in nexdev_crutchsystem/server/crutches.lua, which already handles the per-player use counter, breaking, and the equip / unequip toggle.

QBCore / Qbox

Add to qb-core/shared/items.lua (or qbx_core/shared/items.lua):
Then register the use callback in any server script:

ESX legacy

Register the item in your DB / items table, then bind its use callback:

Checking it worked

From your server console:
Should print started. From F8 in-game:
Stand near a configured MedicLocations entry — the NPC should spawn within Config.SpawnDistance and the blip should be on the map.

Updating

config.lua and the bridge/*.lua files are listed under escrow_ignore, so your settings and any custom framework / inventory adapters survive updates.
  1. Replace the resource files with the new version (keep your edited config.lua and any bridge tweaks).
  2. Restart the resource: