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

items

Items let players use tapes and props directly from inventory.

Auto registration (default)

In config.lua:

Config.Bridge = {
    AutoRegisterItems = true,
    ConsumeOnUse = false,
}

When enabled, missing items are registered at runtime and can be written to ox_inventory/data/items.lua automatically.

After first start, restart ox_inventory once if prompted in the server console:

ensure ox_inventory

Manual registration

Use the included manual_items_ox.lua file in the script root.

1

Open manual_items_ox.lua

Copy all item blocks.

2

Paste the item blocks

Paste them inside return { ... } in ox_inventory/data/items.lua.

3

Update config.lua

Config.Bridge.AutoRegisterItems = false
4

Restart the resources

Restart ox_inventory and s4-warningtapes.

Export format

Every item must use the correct resource name:

Tape items

Item name
Tape type

tape_police

Police

tape_police_inner

Inner cordon

tape_fire

Fire

tape_fire_service

Fire service

tape_caution

Caution

tape_crime

Crime scene

tape_cross_red_white

Red & white

tape_danger

Danger

tape_danger_yellow

Yellow danger

tape_do_not_enter

Do not enter

tape_warning

Warning

tape_standard

Standard

Prop items

Item name
Prop

barrier_supply_box

Supply box (menu)

prop_traffic_cone

Traffic cone

prop_air_cone_light

Air cone light

prop_barrier_t

T-barrier

prop_evidence_marker

Evidence marker

Item images

Place PNG files in s4-warningtapes/items/.

Image path in ox_inventory:

Tape images use the model name (e.g. police.png), not the item name.

Give item (admin)