Open-source FiveM scripts, MLOs, vehicles & server packs for ESX, QBCore & Qbox. Browse Shop →
All Shop
0r Craft (NoPixel 4.0 inspired)

Description


0r Craft (version 1.1.0 by 0Resmon) is a crafting and weapon attachment script for ESX and QBCore. Players craft items at a crafting table and add weapon components at an attachment table.

Features

  • Craft table and attachment table
  • Craftable items set in the config with label, output count, crafting time, ingredients and a bank price per craft
  • Ingredients can also be tools with durability (for example a hammer that needs a certain durability)
  • Crafting queue stored in the database (0r_crafting_queue)
  • As many crafting tables as you want through Config.CraftingTables, each with coordinates, camera, blip, prop and a theme color (red, blue, green or orange)
  • Interaction by target (ox_target or qb-target) or draw text
  • Weapon components configured in Config.Weapons, with UI images for magazines, scopes, grips, flashlights, suppressors and a luxe skin
  • Notifications through esx_notify, qb_notify or a custom function
  • Language files in the locales folder

Requirements

  • ESX or QBCore
  • 0r-lib (start it before 0r-craft)
  • oxmysql
  • ox_inventory or qb-inventory; for other inventories you fill in the functions in shared/utils.lua
  • ox_target or qb-target when you use target interaction
  • ox_lib if you use ox (loaded in fxmanifest.lua)

Installation

  • Install 0r-lib and add ensure 0r-lib before ensure 0r-craft in your server.cfg.
  • Import database.sql.
  • Check the language files in the locales folder.
  • Configure shared/config.lua (framework notify, inventory, target, craftable items, crafting tables, weapons).
  • Add the items from the config to your inventory and make sure they match the component system of your inventory script.
  • Upload the script to your server and start it.

Related resources

All resources →