For the complete documentation index, see llms.txt. This page is also available as Markdown.

troubleshooting

Items not working in inventory

Error: No such export useTapeItem in resource s4-lines

The ox_inventory item still points to the old resource name. Update exports to:

export = 's4-warningtapes.useTapeItem'
export = 's4-warningtapes.usePropItem'

Also check image paths use nui://s4-warningtapes/items/....

Other players cannot see tapes/props
  1. Make sure server/sync.lua is loaded (check fxmanifest.lua).

  2. Restart the resource: ensure s4-warningtapes

  3. Check F8 console for script errors.

Tape models not loading

Ensure s4-line-props is started before s4-warningtapes:

ensure s4-line-props
ensure s4-warningtapes
Props not spawning

Some prop models are vanilla GTA objects. Custom models require the correct stream assets. Check F8 for model load errors.

Job restriction not working

Job checks use your framework (Qbox, QBCore, or ESX). Make sure the job name in config matches exactly (e.g. police, not Police).

Admin commands not working

Commands use ox_lib ace permission group.admin. Add your admin group to server.cfg:

add_ace group.admin command allow
Items not appearing in ox_inventory
  1. Set AutoRegisterItems = true and restart both resources.

  2. Or paste items from manual_items_ox.lua manually.

  3. Run ensure ox_inventory after adding items.

Performance

The cleanup system uses distance-based sleep intervals. If you have many objects, lower Config.Lifetime values so old objects expire sooner.