1
0
Fork 0
forked from Simnation/Main
Main/resources/[carscripts]/slashtires/bridge/target/bt-target.lua
2025-06-07 08:51:21 +02:00

25 lines
692 B
Lua

-- You should really consider using another script, bt-target is really old at this point.
AddEventHandler('slashtires:bt-target:slashTire', function()
-- Fuck it, this is the easiest way.
ExecuteCommand('slashtire')
end)
local vehicles = {}
local modelList = GetAllVehicleModels()
for i = 1, #modelList do
vehicles[i] = joaat(modelList[i])
end
exports['bt-target']:AddTargetModel(vehicles, {
options = {
{
event = 'slashtires:bt-target:slashTire',
icon = Config.TargetIcon,
label = GetLocalization('target_label'),
}
},
job = { 'all' },
distance = Config.MaxTireInteractionDist
})