This page covers the setup parts you should finish before touching scenarios: dependencies, server.cfg order, database behavior, localization, streamed assets, and required items.
Required Dependencies#
Recommended server.cfg Start Order#
start oxmysql
start ox_lib
start framework -- es_extended, qb-core, or qbx_core
-- other resources
start 0r_lib
start 0r-garbage-v2
Database#
You do not need to import SQL manually for this script.
The real resource creates the profile table automatically in modules/mysql/server.lua:
CREATE TABLE `0resmon_garbage_v2_profiles`
read-me/database.sql can still be kept as a reference file, but the script already creates the table on start.
Localization#
Language selection for this resource starts from:
config/main.lua
Default source value:
Config.locale = "en"
If you want another language:
- Change
Config.localeinconfig/main.lua - Make sure a matching locale file exists in the
locales/folder
Ready To Paste Item Tables#
If you want to install the items fast, use the blocks below directly in your inventory files.
The real source uses:
garbage_tabletfor menu accessmetalscrap,copper,plastic,aluminum,glassingarbageBag.openRewardspacked_weed,packed_meth,money,plastic,copperin container search loot
OX Inventory#
{% tabs fullWidth="false" %}
--- # start 0r-garbage-v2
["garbage_tablet"] = { label = "Garbage Tablet", weight = 100, stack = false },
["metalscrap"] = { label = "Metal Scrap", weight = 100, stack = true },
["copper"] = { label = "Copper", weight = 100, stack = true },
["plastic"] = { label = "Plastic", weight = 100, stack = true },
["aluminum"] = { label = "Aluminum", weight = 100, stack = true },
["glass"] = { label = "Glass", weight = 100, stack = true },
["packed_weed"] = { label = "Packed Weed", weight = 1000, stack = true },
["packed_meth"] = { label = "Packed Meth", weight = 1000, stack = true },
["money"] = { label = "Money", weight = 0, stack = true },
--- # end 0r-garbage-v2
QB Core#
{% tabs fullWidth="false" %}
garbage_tablet = { name = "garbage_tablet", label = "Garbage Tablet", weight = 100, type = "item", image = "garbage_tablet.png", unique = false, useable = true, shouldClose = false },
metalscrap = { name = "metalscrap", label = "Metal Scrap", weight = 100, type = "item", image = "metalscrap.png", unique = false, useable = false, shouldClose = false, description = "Metal Scrap" },
copper = { name = "copper", label = "Copper", weight = 100, type = "item", image = "copper.png", unique = false, useable = false, shouldClose = false, description = "Copper" },
plastic = { name = "plastic", label = "Plastic", weight = 100, type = "item", image = "plastic.png", unique = false, useable = false, shouldClose = false, description = "Plastic" },
aluminum = { name = "aluminum", label = "Aluminum", weight = 100, type = "item", image = "aluminum.png", unique = false, useable = false, shouldClose = false, description = "Aluminum" },
glass = { name = "glass", label = "Glass", weight = 100, type = "item", image = "glass.png", unique = false, useable = false, shouldClose = false, description = "Glass" },
packed_weed = { name = "packed_weed", label = "Packed Weed", weight = 1000, type = "item", image = "packed_weed.png", unique = false, useable = false, shouldClose = false, description = "Packed Weed" },
packed_meth = { name = "packed_meth", label = "Packed Meth", weight = 1000, type = "item", image = "packed_meth.png", unique = false, useable = false, shouldClose = false, description = "Packed Meth" },
money = { name = "money", label = "Money", weight = 0, type = "item", image = "money.png", unique = false, useable = false, shouldClose = false, description = "Money" },
Streamed Assets#
This resource streams default garbage bag assets and requests:
stream/qua_binbags.ytyp
Do not delete the stream/ files unless you are replacing the default prop setup yourself.
Final Checklist#
0r_libstarts without errors0r-garbage-v2starts without errorsgarbage_tabletexists ifopenWithItem.active = true- The profile table is created automatically in MySQL
- The custom garbage bag props load in game