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 inconfig.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’sshared/items.luafor 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 inconfig.lua. - Persistence
Crafting jobs are stored in MySQL (sdev_crafting_jobstable) and survive server restarts until collected. - Localization
English and German locales included (locales/en.json,locales/de.json). All notifications and menu texts uselocale(). - Protected resource name
The script will only run under the folder namesdev_crafting(anti-rename check).
📂 File Structure
fxmanifest.lua– resource manifestconfig.lua– global settings, crafting stations, blips, etc.shared/recipes.lua– recipe definitions grouped by categoryserver/main.lua– server logic, database integration, item handlingserver/protect.lua– resource name protection (can be escrowed)client/main.lua– client logic, station props, menus, blips, notificationssql/sdev_crafting.sql– SQL schema forsdev_crafting_jobstablelocales/en.json,locales/de.json– translationsREADME.md– documentation
⚙️ Setup
- Place the resource in
resources/[your]/sdev_crafting.
Do not rename the folder. - Import
sql/sdev_crafting.sqlinto your database. - Adjust
config.luato define your crafting stations and recipes. - Make sure
rsg-core,ox_lib,ox_target, andoxmysqlare installed and running. - 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.