Okay, I definitely need help. I’m trying to get this to work just at a basic level. I have two issues. 1) I can’t seem to get out of the menu without having to F8 quit. and 2) I’m providing the items but not getting the items back. I haven’t really done any modification to the basic script besides the removal of the ingredients.
Config = {}
– Ammo given by default to crafted weapons
Config.WeaponAmmo = 42
Config.Recipes = {
-- Can be a normal ESX item
["lockpick"] = {
{item = "bobbypin", quantity = 4 },
{item = "rubberband", quantity = 1 },
},
-- Can be a weapon, must follow this format
['WEAPON_ASSAULTRIFLE'] = {
{ item = "steel", quantity = 2, remove = true },
{ item = "gunpowder", quantity = 3, remove = true },
}
– Enable a shop to access the crafting menu
Config.Shop = {
useShop = true,
shopCoordinates = { x=962.5, y=-1585.5, z=29.6 },
shopName = "Crafting Station",
shopBlipID = 446,
zoneSize = { x = 2.5, y = 2.5, z = 1.5 },
zoneColor = { r = 255, g = 0, b = 0, a = 100 }
}
– Enable crafting menu through a keyboard shortcut
Config.Keyboard = {
useKeyboard = false,
keyCode = 303
}
EDIT: I have the steel and gunpowder items in my SQL DB