This script allows you to steal catalytic converters of any cars.
Stealing a catalytic converter will require an angle grinder.
After the converter has been stolen the vehicles exhaust sound will change and it will produce tons of smoke.
The stolen catalytic converters can be then resold for some money at a special NPC
Swoop’d but curious what the event is called for cutting the convertor?
Didnt see any other location for alerts.
Trying to add police alerts, and gonna use PD_NPC_Cop Caller, i think from one of Kuz other partners.
Thanks!
EDIT nevermind found TriggerClientEvent('ln_catalytic:startCutCat', source) can likely use that for script.
Trying to make the currency work with NDCore do you know how? I dont see open functions for add money to be able to set it up. See here for info functions - ND Framework
[script:ln_catalytic_] SCRIPT ERROR: @ln_catalytic_converters/server/server.lua:45: attempt to call a nil value (global 'DoesPlayerHaveItem')
[script:ln_catalytic_] > handler (@ln_catalytic_converters/server/server.lua:45)
getting this error
(my nd.lua which ive made on server side… forgive me im brand new to lua)
if Config.framework == '' then
NDCore = exports["ND_Core"]:GetCoreObject()
RegisterNetEvent("Catalytic.GetPlayerID", function()
local src = source
local xPlayer = NDCore.Functions.GetPlayer(src)
end)
function AddMoney(player, amount)
local src = source
local player = NDCore.Functions.GetPlayer(src)
if not player then
return false
end
NDCore.Functions.AddMoney(count, player, "cash", "givemoney")
end
end
my config beginning
Config = {}
-- Type in 'esx' or 'qbcore' depending on your framework
-- Type in '' if you are using standalone version
Config.framework = ''
-- Enable if you are using standalone version of the script
Config.command = {
enabled = true,
command = 'cutcat'
}
--If vehicle's catalytic converter can be cut if someone is inside a vehicle
Config.canCutIfVehicleOccupied = false
--If item should be one time use
Config.toolOneTimeUse = false
Hello I am also wondering the same if there are police alerts built in for this script? I am interested in this but a police alert would be nice as well