Giter Site home page Giter Site logo

jim-recycle's Introduction

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"},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.