Hey,
I have a little modified version of bt-target and usually have to make a small change. With your first version I have no issues implementing the change, but for some reason I cant get the latest version to work.
In the v1.0 all I changed was this:
exports[‘bt-target’]:AddTargetModel(machines, {
options = {
{
event = 'szi_vendingmachine:startRobbing',
icon = 'fas fa-mug-hot',
label = 'Rob Vending Machine',
job = {'all'},
},
{
event = 'szi_vendingmachine:buy',
icon = 'fas fa-mug-hot',
label = 'Buy Soda',
job = {'all'},
}
},
distance = 1.5
})
end
end
end)
On latest version I get this error and doesnt matter where I add job I just keep getting the same error
Im sure its just a small change, but have tried multiple ways to fix with no luck.
edit:
Okay I got this working, but now a new issue arrised
Its working based of add the job = {‘all’} to
if GetDependency(“BTtarget”) then
local options = {}
table.insert(
options,
{
event = "szi_vendingmachine:buy",
icon = "fas fa-mug-hot",
label = "Use",
machine = v.prop,
name = "vending-machine |" .. v.prop,
items = v.items,
job = {"all"}
}
)
New problem is this:
My bt-target line: