πOx Inventory Install
Step 1: Locate the OX Inventory Folder
Navigate to your FiveM server directory.
Open the
resourcesfolder.Find and open the ox_inventory resource folder.
Step 2: Open the data/items.lua File
data/items.lua FileInside the ox_inventory folder, go to:
ox_inventory/data/items.luaOpen
items.luausing Notepad++, VS Code, or another code editor.
Step 3: Add Your New Item
Add a new entry for your item inside the
items.luafile.Use the following format:
Items Config (consumable)
['djs_frap_chocolatemocha'] = {
label = 'Chocolate Mocha',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_chocolatemocha`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_cottoncandy'] = {
label = 'Cotton Candy',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_cottoncandy`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_lavender'] = {
label = 'Lavender',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_lavender`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_macha'] = {
label = 'Macha',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_macha`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_mocha'] = {
label = 'Mocha',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_mocha`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_shortcake'] = {
label = 'Strawberry Shortcake',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_shortcake`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_smores'] = {
label = 'Smores',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_smores`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_strawberry'] = {
label = 'Strawberry',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_strawberry`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_toffee'] = {
label = 'Toffee',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_toffee`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},
['djs_frap_vanillabean'] = {
label = 'Vanilla Bean',
weight = 0,
client = {
status = { thirst = 0 },
anim = { dict = 'anim@djs@drink@soda', clip = 'djs_drink_soda_sip_long' },
prop = { model = `djs_frap_vanillabean`, bone = 58868, pos = vec3(0.042000, 0.060000, 0.000000), rot = vec3(-0.300000, 0.000000, 20.849972) },
usetime = 10000,
cancel = true,
--notification = 'You quenched your thirst with cola'
}
},Items Config (non-consumable)
['djs_frap_chocolatemocha'] = {
label = 'Chocolate Mocha',
weight = 0,
},
['djs_frap_cottoncandy'] = {
label = 'Cotton Candy',
weight = 0,
},
['djs_frap_lavender'] = {
label = 'Lavender',
weight = 0,
},
['djs_frap_macha'] = {
label = 'Macha',
weight = 0,
},
['djs_frap_mocha'] = {
label = 'Mocha',
weight = 0,
},
['djs_frap_shortcake'] = {
label = 'Strawberry Shortcake',
weight = 0,
},
['djs_frap_smores'] = {
label = 'Smores',
weight = 0,
},
['djs_frap_strawberry'] = {
label = 'Strawberry',
weight = 0,
},
['djs_frap_toffee'] = {
label = 'Toffee',
weight = 0,
},
['djs_frap_vanillabean'] = {
label = 'Vanilla Bean',
weight = 0,
},Adjust label, weight, stack, animations, and props as needed.
Step 4: Add Item Image
OX Inventory allows you to display custom images for items in the inventory.
Where to Place Item Images
Navigate to:
Place your item image inside the
images/folder.
Step 5: Save the File & Restart Server
Save the
items.luafile.Restart your FiveM server using one of the following methods:
Console Command:
Full Server Restart: Stop and start the server manually.
Step 6: Test the Item
Spawn the item using an admin command:
(Replace
yourIDwith your actual player ID andburgerwith your item name.)Open OX Inventory (
F2default key).Verify the item appears and functions correctly.
Step 6: Debugging & Adjustments
If the item does not show, check the server console for errors.
Verify spelling and commas in
items.lua.Ensure
ox_inventoryis running properly.Look at the FiveM forums or Discord for troubleshooting help.
Last updated