To open crafting, just go to the defined location and press E
Define which items can be crafted by players.
Create and determine the item recipe that can be crafted by players
Set the amount of drops to drop recipe items to craft an item
Define how many items will be needed to craft an item
Define the crafting locations and which items can be crafted from that location
Define whether a crafting location can be accessed by any player, or whether only some players with a specific permission can access that crafting
Set the crafting time for each item, whether it will take X seconds to craft or whether it will be instantaneous.
Define the cost (money) of crafting that item, that is, if it will be with money, bank or black money, to leave it without cost, just leave the cost 0.
Nui has notification, if:
The player has no money.
There is no weight or limit to get the item
Or for some apparent reason, the player magically no longer has the recipe item
Permission to access crafting
Some crafting locations may be restricted, that is, only players with permission (job name) will be able to access that location
Items that can only be made at a crafting site
Some items can be restricted and crafted only in one location, so if the player tries to place any item from the recipe in another craft, he will not be able to craft it, nor will the recipe appear.
Configuration
In Config.lua, you can translate any text that the GUI has any way you want.
In Moonset you can change the scale, position, opacity and you can adjust it as you wish.
To create the crafting locations is very simple, just go to Config.lua and define in crafting_blips.
To create craftable items is very simple, just go to Config.lua and define in Items.
To create recipes for craftable items is very simple, just go to Config.lua and define in Recipe_Items.
In Config.lua, I left examples of locations, items and recipes for you to see and create yours.
Attention
All tests were done on PlumeESXby tabarra, technically how previous versions of esx should work, otherwise you can contact me.
Update 1.0 (build 1.1)
Fixed font-family bug in css vuejs.
Adjusted cookbook, was very slow.
Added show/hide items button in cookbook. Clicking will show all craftable items in that blip, if configured correctly.
Added in āConfig.luaā āshow_itemsā and āhide_itemsā to translate.
Attention: Never create items with the same name in the same blip.
looks really cool, kinda what Iāve been looking forā¦ Is there a way you can have it so some stuff can be crafted anywhere and some stuff only at the designated spot?
Yes it is possible, you can define if such location can craft āItem 1ā, āItem 2ā and āItem 3ā, and in another location, craft āItem 4ā, āItem 5ā and āItem 6ā.
With this adjustment, is it still possible to lock certain items to locations, but some simpler items can be done anywhere? ex. Cigarettes can be made with rolling papers and tobacco can be made anywhere, but I have to go to a specific area to craft a weapon using X parts.
Is this possibly a big enough thing to just update the script to add useAnywhere = true/false straight to the config, defaulting every item to false?
Yes, technically itās possible yes, Iām already working to add this to the script.
In the current version it is already possible to do this, however, you always need to go somewhere, there is no access from anywhere function (for example command chat: /craft name)
The system does this, but you need to have at least one item that you know you can craft, for example, item āweapon pieceā by placing this item in the slot, items that can be crafted will appear on the left in the āCookBookā. made with the item āweapon pieceā.
Now if you mean to show all the items that can be crafted, independently if the player puts some item in the slots or not, yes it is possible to do that, I can do it in the future.