Crafting RSG

Crafting RSG

This item is free.

Add to Basket

sdev_crafting

sdev_crafting is a modular crafting system for RedM built on the RSG Framework, using ox_lib and ox_target.
It allows you to set up crafting stations (workbenches, cooking tables, etc.) as world props with individual recipes, crafting queues, and clean notifications.

https://youtu.be/ZtH5sBpFF4Y


✨ Features

  • Station-based crafting
    Each crafting station is a placed world prop with its own coordinates and heading, defined in config.lua.
  • Per-station recipes
    Not all stations share the same recipes. Recipes are grouped (e.g. weapons, ammo, provisions) and can be assigned to specific stations.
  • Interactive menus with ox_lib
    Open a contextual crafting menu at a station to browse recipe groups, see requirements, and start crafting.
  • ox_target support
    Interact with the stations using ox_target prompts. Each station provides actions for Open Crafting and Collect Finished Items.
  • Background crafting
    Crafting continues even if you walk away. Only the player who started the craft can collect the result.
  • Job & rank restrictions
    Recipes can be locked behind jobs and minimum grades.
  • Notifications
    • In-menu notifications for errors (not enough materials, wrong job, etc.).
    • Real-time success notifications when a crafting job is finished (with item labels).
  • Item labels and images
    Uses RSG Core’s shared/items.lua for proper names and /rsg-inventory/html/images/ for icons.
  • Blips (optional)
    Stations can optionally display a blip on the map. Toggle globally or per station in config.lua.
  • Persistence
    Crafting jobs are stored in MySQL (sdev_crafting_jobs table) and survive server restarts until collected.
  • Localization
    English and German locales included (locales/en.json, locales/de.json). All notifications and menu texts use locale().
  • Protected resource name
    The script will only run under the folder name sdev_crafting (anti-rename check).

📂 File Structure

  • fxmanifest.lua – resource manifest
  • config.lua – global settings, crafting stations, blips, etc.
  • shared/recipes.lua – recipe definitions grouped by category
  • server/main.lua – server logic, database integration, item handling
  • server/protect.lua – resource name protection (can be escrowed)
  • client/main.lua – client logic, station props, menus, blips, notifications
  • sql/sdev_crafting.sql – SQL schema for sdev_crafting_jobs table
  • locales/en.json, locales/de.json – translations
  • README.md – documentation

⚙️ Setup

  1. Place the resource in resources/[your]/sdev_crafting.
    Do not rename the folder.
  2. Import sql/sdev_crafting.sql into your database.
  3. Adjust config.lua to define your crafting stations and recipes.
  4. Make sure rsg-core, ox_lib, ox_target, and oxmysql are installed and running.
  5. Add to your server.cfg:
    ensure sdev_crafting

📜 License

This resource is intended for RedM servers using the RSG Framework.
You may edit config.lua and recipes.lua freely to match your server’s needs.