FiveM Custom QBCORE recycling script made by me from scratch
Highly customisable via config.lua
Features several ways to get materials
Customisable points for Selling materials
NPC's spawn on the blip locations
Features simplistic built in crafting that uses recipes in the config.lua
If you want to use your own items or repurpose this script:
Place in your resources folder
add the following code to your server.cfg/resources.cfg below [qb]
ensure jim-recycle
Add the images to your inventory folder
[qb] > qb-inventory > html > images
This script supports automatic installation of items to items.lua with newer QBCore exports
If you're having issues or your core doesn't support this then, put these lines in your items.lua
-- Jim-Recycle Items
["recyclablematerial"] = {["name"] = "recyclablematerial", ["label"] = "Recycle Box", ["weight"] = 100, ["type"] = "item", ["image"] = "recyclablematerial.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "A box of Recyclable Materials"},
["bottle"] = {["name"] = "bottle", ["label"] = "Empty Bottle", ["weight"] = 10, ["type"] = "item", ["image"] = "bottle.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "A glass bottle"},
["can"] = {["name"] = "can", ["label"] = "Empty Can", ["weight"] = 10, ["type"] = "item", ["image"] = "can.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "An empty can, good for recycling"},