ESX Minecraft Crafting
A Minecraft inspired crafting system for FiveM ESX framework
Features
- Crafting items
- Custom crafting recipe
- Optimized
Installation
Using Git
git clone https://github.com/kasuganosoras/esx_minecraft_crafting
Manually
- Download from Github Releases
- Extract the file to your server
resources
directory - Add
ensure esx_minecraft_crafting
to yourserver.cfg
file. - Restart your FiveM server
Using
For default configuration, you can press F10 or type command /craft
to open the crafting table.
You can change the key in the config.lua
.
Configuration
- Common: config.lua
- Crafting recipe: shared/crafts.lua
- Locales: shared/locale.lua
- NUI Locales: client/html/main.js
Crafting recipe
Example recipe:
{
-- Items to input
input = {
nil, -- Grid 1-1, use nil for no item
{name = "scrap", amount = 1}, -- Grid 1-2, item name and amount
nil, -- Grid 1-3
{name = "scrap", amount = 1}, -- Grid 2-1
{name = "scrap", amount = 1}, -- Grid 2-2
{name = "scrap", amount = 1}, -- Grid 2-3
nil, -- Grid 3-1
{name = "scrap", amount = 1}, -- Grid 3-2
nil, -- Grid 3-3
},
-- Crafting result
output = {
item = "fixkit", -- Item name
amount = 1, -- Item amount
}
}
PS: You can use this tool to create your recipe easily: Download Link
Special thanks @chadada77 for creating this helpful tool!