Skip to content

jimathy/jim-recycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jim-recycle

FiveM Custom QBCORE recycling script made by me from scratch

  • Highly customisable via config.lua

    • Locations are easily changeable/removable
  • Features several ways to get materials

    • Recycle Center - Trade recyclable Materials to get crafting materials
    • Dumpster Diving - Search dumpsters and trash cans for materials
    • Scrapping - Search wrecked vehicles for scraps
  • Customisable points for Selling materials

    • Add a Location for an ore to the config and it will use this location for both qb-target and a prop
    • Can place them anywhere, doesn't have to be just one mining location
    • I opted for a drilling animation as opposed to the pickaxe swinging
    • Nicely animated for better immersion
  • NPC's spawn on the blip locations

    • These locations can also give third eye and select ones have context menus for selling points
  • Features simplistic built in crafting that uses recipes in the config.lua

Video Previews

Dependencies

  • qb-menu - for the menus
  • qb-target - for the third eye selection

How to install

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

Item installation

  • Add the images to your inventory folder
    • for example: [qb] > qb-inventory > html > images
  • This script supports automatic installation of items to items.lua with newer QBCore exports
    • You still need to install images
  • 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"},

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages