A Minecraft inspired crafting system for FiveM ESX framework
- Crafting items
- Custom crafting recipe
- Optimized
yum install esx_minecraft_crafting
git clone https://github.com/kasuganosoras/esx_minecraft_crafting
- 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
For default configuration, you can press F10 to open the crafting table.
You can change the key in the config.lua
.
- Common: config.lua
- Crafting recipe: shared/crafts.lua
- Locales: shared/locale.lua
- NUI Locales: client/html/main.js
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
}
}
License
esx_minecraft_crafting - A Minecraft inspired crafting system for FiveM ESX framework
Copyright (C) 2022 Akkariin
This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.