Detailed guide for adding nail trap items to your inventory system.
Overview
The GOD - Nail Trap System requires two items to be added to your inventory:
screw_nail - Single-use nail item
nailspackage - Package containing multiple nails (up to 20)
ox_inventory Setup
Step 1: Locate Items File
Navigate to your ox_inventory directory and open:
ox_inventory/data/items.lua
Step 2: Add Items
Add the following items to your items.lua file:
['screw_nail'] = {label='Nail',weight=5000,stack=true,close=true,description='A specially crafted nail to do something haha..',client= {image='screw_nail.png',export='J0-nailScript.useNail' },},['nailspackage'] = {label='Nails Package',weight=5000,stack=true,close=true,description='A specially crafted nail to do something haha..',client= {image='nailspackage.png',export='J0-nailScript.useNailPackage' },},
Step 3: Add Item Images
Copy screw_nail.png from J0-nailScript/installme/ directory
Place it in: ox_inventory/web/images/screw_nail.png
For nailspackage, you can use the same image or create a custom one:
Place in: ox_inventory/web/images/nailspackage.png
Step 4: Restart Resource
After adding items, restart your ox_inventory resource:
ox_inventory Item Properties Explained
Property
Value
Description
label
'Nail' / 'Nails Package'
Display name in inventory
weight
5000
Item weight (adjust as needed)
stack
true
Items can stack in inventory
close
true
Closes inventory when used
description
Custom text
Item description tooltip
client.export
Function name
Client-side export to call
qb-inventory Setup
Step 1: Locate Items File
Navigate to your qb-inventory directory and open:
Step 2: Add Items
Add the following items to your items.lua file:
Step 3: Add Item Images
Copy screw_nail.png from J0-nailScript/installme/ directory
Place it in: qb-inventory/html/images/screw_nail.png
For nailspackage, you can use the same image or create a custom one:
Place in: qb-inventory/html/images/nailspackage.png
Step 4: Restart Resource
After adding items, restart your qb-inventory resource:
qb-inventory Item Properties Explained
Property
Value
Description
name
Item identifier
Must match the key
label
Display name
Name shown in inventory
weight
5000
Item weight (adjust as needed)
type
"item"
Item type classification
image
PNG filename
Image file name (without path)
unique
false
Item is not unique (can have multiple)
useable
true
Item can be used/consumed
shouldClose
true
Closes inventory when used
combinable
nil
No combination recipes
description
Custom text
Item description tooltip
ESX Inventory Setup
If you're using ESX with a custom inventory system, follow the instructions for your specific inventory.
For standard ESX, you may need to:
Add items to your database (if using database items)
Register useable items in your ESX configuration (see Installation Guide)
Item Customization
Changing Item Weight
Adjust the weight property to match your server's economy:
Changing Item Description
Customize the description to match your server's lore: