HEX
ResyncResync Vehicle Performance

Configurations

Here you will get all configurations & open source files that are included within this script.

Config File

Config = {}

Config.Debug = true

Config.Framework = 'esx' -- esx, qb, standalone
Config.Locale = 'automatic' -- automatic, en, de, es, fr, it, nl, pl, pt, tr, ar

Config.Menu = {
    creator = {
        x = 0, -- X Position of the Menu
        y = 400 -- Y Position of the Menu
    },
    nos = {
        x = 0, -- X Position of the Menu
        y = 400 -- Y Position of the Menu
    }
}

Config.Creator = {
    commandName = 'vehiclecreator',
    permissions = { -- Permissions required to access the creator menu you can add group
        'admin'
    }
}

Config.Keybinds = {
    nos = 'LSHIFT',
    nosmenu = 'F9',
    purge = 'LMENU',
    antilag = 'LCONTROL',
    drift = 'X',
    exhaust = 'K'
}

Config.NOS = {
    maxUsageTime = 99.0, -- Maximum time NOS can be used in seconds
    cooldowns = {
        short = 2.5, -- Cooldown between each Key Press
        full = 10.0 -- Cooldown after NOS is fully used
    },
    turboStrength = 1.25, -- Multiplier for NOS Turbo Strength
    playAddonSound = true, -- Enable or Disable Additional Sound when NOS is Activated
    addonSoundUrl = 'https://cdn.resync.me/attachments/scripts/nitro.ogg', -- URL for the Additional NOS Sound (.ogg format recommended)
    useScreenEffect = true, -- Enable or Disable Screen Effect when NOS is Active
    enableTaillightTrails = true, -- Enable or Disable Taillight Trails Effect
    nosColors = {
        useMenu = true, -- Let players choose NOS colors from a menu
        defaultColor = 1 -- 1 = Blue, 2 = Pink, 3 = Green, 4 = Red, 5 = Green+Red, 6 = Rainbow
    },
    nosStyle = 'default', -- default, onClick
    nosClickTime = 3000 -- Time in Msec for the onClick Mode
}

Config.AntiLag = {
    mode = 'mix', -- click = Players need to press a Button, auto = Automatic Activation based on RPM, mix = Both
    cooldown = 0, -- For Click & Mix mode, Cooldown in milliseconds between each Activation
}

Config.Purge = {
    cooldown = 7.5 -- Cooldown in seconds between each Purge Activation
}

Config.Drift = {
    speedcap = true -- Prevent players from drifting at very high speeds
}

Config.Exhaust = {
    playSound = true, -- Enable or Disable the sound when toggling exhaust
    showNotify = true -- Enable or Disable the notification when toggling exhaust
}

Config.LaunchControl = {
    activateTime = 500, -- Milliseconds to activate
    boostDuration = 3000, -- 3 seconds boost
    cooldownTime = 10000, -- 10 seconds cooldown
    LaunchControlOverides = { -- Values which Override the Handling when using Launch Control
        ['fInitialDriveForce'] = 2.5,
        ['fDriveInertia'] = 0.3,
        ['fInitialDragCoeff'] = 0.4,
        ['fTractionCurveMax'] = 2.5,
        ['fClutchChangeRateScaleUpShift'] = 0.8,
        ['fClutchChangeRateScaleDownShift'] = 0.8,
        ['fTractionCurveMin'] = 1.2,
        ['fInitialDriveMaxFlatVel'] = 300.0
    }
}

Open Source Files

function Notify(title, message, notifyType, timeout)
    if timeout == nil then timeout = 5000 end
    if notifyType == nil then notifyType = 'info' end

    if GetResourceState('hex_final_hud') == 'started' then
        exports['hex_final_hud']:Notify(title, message, notifyType, timeout)
    elseif GetResourceState('hex_4_hud') == 'started' then
        exports['hex_4_hud']:Notify(title, message, notifyType, timeout)
    elseif GetResourceState('hex_2_hud') == 'started' then
        exports['hex_2_hud']:Notify(title, message, notifyType, timeout)
    elseif GetResourceState('hex_future_hud') == 'started' then
        exports['hex_future_hud']:Notify(title, message, notifyType, timeout)
    elseif GetResourceState('hex_1_hud') == 'started' then
        exports['hex_1_hud']:Notify(title, message, notifyType, timeout)
    elseif GetResourceState('hex_hud_prem') == 'started' then
        exports['hex_hud_prem']:Notify(title, message, notifyType, timeout)
    elseif GetResourceState('hex_hud') == 'started' then
        exports['hex_hud']:Notify(title, message, notifyType, timeout)
    else
        print(('Notify: %s, %s, %s, %s'):format(title, message, notifyType, timeout))
    end
end