
📍Interaction Locations
Define crafting station locations with either a target zone interaction or a prop based interaction
All locations must pass the recipe type that corresponds in recipes.lua
Set enabled to true to use this crafting location
Set debug to true if a target zone to display the target zone location
Name must be unique for the target zone
Coords must be a
vector3valueRadius is the target zone radius size
Distance is the target interaction distance (never set this higher than the value set in Config.CoreSettings.Security.MaxDistance to prevent false positives)
Icon is the target icon
Label is the target label
Enable a prop if required and define its model name and heading
Define restrictions if required for job locks or gang locks
Enable a blip if required and define the id, colour, scale and title
Define the recipe type in which this location relates to in
recipes.lua
Config.InteractionLocations = {
{
enabled = true, -- set to true to enable this zone
debug = false, -- debug this zone
name = "my_custom_crafting_zone", -- zone name must be unique
coords = vector3(-0.65, -438.97, 39.74), -- coords must be vector3
radius = 1.0, distance = 3.0, -- zone radius and target distance (do not set distance number higher than MaxDistance in Config.CoreSettings.Security)
icon = 'fa-solid fa-hand-point-up', label = 'Crafting', -- target icon and target label
prop = { enabled = true, model = 'prop_tool_bench02', heading = 155.06, }, -- enable a prop or just have a boxzone
restrictions = { job = {}, gang = {}, }, -- gang or job name restrictions (only these can access this location)
blip = { enabled = true, id = 285, colour = 5, scale = 0.7, title = 'Crafting Bench', }, -- blip id, blip colour, blip scale and blip title
args = { recipe = 'My Custom Crafting', }, -- recipe type to determine which category of items relates to this location in recipes.lua these can be named anything just make sure they match
},
}Last updated