Smelting
Furnaces can be either placeable by players or at static locations defined in the config
The furnace object coords (if using the static method) must be
vector4
You can define multiple categories and items available to smelt in the
Smelting
table
Config.Smelting = {
Furnace = {
model = 'bzzz_prop_mine_furnace_b', -- prop name for furnace
openicon = 'fa-solid fa-bars', -- target icon
openlabel = 'Smelt Ores & Ingots', -- target label
closeicon = 'fas fa-xmark', -- target icon
closelabel = 'Remove Furnace', -- target label
distance = 4.0, -- target distance
spawning = {
method = 'static', -- choose between static or placeable furnaces
--use 'static' for static furnace locations (make sure to define coords below)
--use 'placeable' for placeable furnaces (make sure the item is in your items.lua)
--if set to static you must define coords for spawn locations below
--if set to placeable you can ignore the coords table below
coords = { -- define coords for furnace locations if set to 'static' must be vector4
vector4(2944.02, 2743.98, 43.32, 325.17), -- davis quarry
vector4(-600.92, 2092.68, 131.28, 319.42), -- chaparral mineshaft
},
blip = { -- define blip settings
enabled = true, -- enable blip
id = 103, -- blip id
colour = 5, -- blip colour
scale = 0.7, -- blip scale
title = 'Furnace', -- blip title
},
},
},
Smelting = { -- define items that can be smelted at the furnace
['rawsulfur'] = { -- the key is the item name that can be smelted
required = 'sulfurore', -- required ore name to smelt the ingot
duration = 10, -- time in seconds to smelt 1 unit (this is multiplied by the amount the player chooses)
amount = 1, -- required ore amount to smelt the ingot
receieved = 3, -- amount of ingot received from smelting the ore
},
['ironingot'] = { -- the key is the item name that can be smelted
required = 'ironore', -- required ore name to smelt the ingot
duration = 10, -- time in seconds to smelt 1 unit (this is multiplied by the amount the player chooses)
amount = 1, -- required ore amount to smelt the ingot
receieved = 2, -- amount of ingot received from smelting the ore
},
--add more smelting options below as required
},
}
Last updated