config.lua

Config = {}

Config.framework = "qb" -- esx or qb
Config.newESX = true -- Ignore if you are using QB Framework

Config.AntiLag = {
    hotkey = 21, -- SHIFT = 21
    item = "antilag",
    removeCMD = "antilagremove",
    
    installationTime = 15000,
    deinstallationTime = 5000,
    flameSize = 2.4,
}

Config.progressBars = false
Config.progressBarstart = function(text, time) 
    exports['progressBar']:startUI(time, text) -- Your progress bar resource name (export must be set in manifest.lua)
end
Config.progressBarstop = function() 
    exports['progressBar']:stopUI() -- Your progress bar resource name (export must be set in manifest.lua)
end

Config.RPM = function(RPM, pedVehicle, vehiclePos, BackFireDelay) 
    if RPM > 0.75 and RPM < 0.86 then -- Change this value to your liking
        TriggerServerEvent("six:server:antilag:flames", VehToNet(pedVehicle), vehiclePos)
        Wait(BackFireDelay)
    end
end

Config.Notification = function(message, type, source)
    if Config.framework == "esx" then
        if type == "client" then
            ESX.ShowNotification(message)
        else
            TriggerClientEvent("esx:showNotification", source, message)
        end
    else
        if type == "client" then
            QBCore.Functions.Notify(message)
        else
            TriggerClientEvent("QBCore:Notify", source, message)
        end
    end
end

Config.Locals = {
    installProgress = "Installation of Antilag system",
    deinstallProgress = "Deinstallation of Antilag system",
    installtionAntilag = "You have successfully grown the Antilag System",
    deinstalltionAntilag = "You have successfully removed the Antilag System",
    alrInstalled = "An anti-lag system is already installed in this vehicle",
    notInstalled = "An anti-lag system is not installed in this vehicle",
    inVehicle = "You must be in a vehicle to install the antilag system",
    notOwner = "You are not the owner of this vehicle"
}

Last updated