HEX
HexscriptsClassicRace

Configurations

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

Open Source Files

local DM = DrawMarker --DONT TOUCH THIS LINE

Config = {}

Config.Debug = true

Config.Framework = 'ESX'

Config.DefaultAvatar = 'https://cdn.discordapp.com/attachments/1057342168391503905/1068714634758070292/Komp_1_2.gif?ex=651acf50&is=65197dd0&hm=0cab22e348fa8ebd8cf7b174a335c3dad3e1f97d794a7b36f28654bd284a2ea0&'

Config.Racetracks = {
    {
        name = 'Bennys Racetrack',
        startPoint = vector3(-739.5891, -2046.3955, 9.1753),
        maxDistance = 500.0,

        price = 100,
        giveWinnerMoneyPool = true,
        laps = 3,

        spawnPoints = {
            { coords = vector4(-730.1654, -2047.7350, 8.9664, 219.0538), enable = true, target = 0 },
            { coords = vector4(-729.0986, -2041.2311, 8.9710, 217.7976), enable = true, target = 0 },
            { coords = vector4(-735.6182, -2041.0073, 8.9757, 219.2510), enable = true, target = 0 },
            { coords = vector4(-734.4495, -2034.5563, 8.9803, 218.9580), enable = true, target = 0 },
            { coords = vector4(-741.0057, -2034.2194, 8.9850, 223.6849), enable = true, target = 0 },
            { coords = vector4(-739.7673, -2027.9365, 8.9895, 219.7418), enable = true, target = 0 },
            { coords = vector4(-746.2941, -2027.5665, 8.9942, 219.3920), enable = true, target = 0 },
            { coords = vector4(-745.2225, -2021.1583, 8.9989, 219.9774), enable = true, target = 0 },
        },

        route = {
            [1] = vector3(-711.6187, -2069.0625, 8.9508),
            [2] = vector3(-714.2600, -2096.9634, 8.9170),
            [3] = vector3(-735.1274, -2153.2673, 6.3194),
            [4] = vector3(-700.5242, -2187.2986, 8.2147),
            [5] = vector3(-625.0480, -2212.5098, 10.6226),
            [6] = vector3(-546.1731, -2145.5503, 7.5512),
            [7] = vector3(-600.5770, -2063.1785, 6.5822),
            [8] = vector3(-572.5425, -2126.5840, 8.8036),
            [9] = vector3(-616.0248, -2189.2881, 9.7433),
            [10] = vector3(-626.7834, -2167.6990, 10.7306),
            [11] = vector3(-603.0236, -2126.5737, 10.2179),
            [12] = vector3(-634.2493, -2131.9746, 9.6001),
            [13] = vector3(-691.9053, -2160.1711, 7.4422),
            [14] = vector3(-633.4210, -2103.3169, 6.6943),
            [15] = vector3(-671.6326, -2096.2534, 8.2078),
            [16] = vector3(-654.9318, -2053.0276, 9.0787),
            [17] = vector3(-685.1857, -2032.2910, 9.0746),
            [18] = vector3(-732.0118, -1982.7072, 9.0678),
            [19] = vector3(-757.5934, -1998.1177, 9.0615),
            [20] = vector3(-725.7911, -2048.9343, 8.9624)
        }
    }
}

Config.Locales = {
    ['info'] = 'Information',
    ['notEnoughMoney'] = 'You dont have enough Money on you!',
    ['joinedRace'] = 'You joined the Race!',
    ['leavedRace'] = 'You left the Race!',
    ['pressE'] = 'Press E to open the Racing Leaderboard',
    ['pressEJ'] = 'Press E to join the Race',
    ['pressEL'] = 'Press E to leave the Race',
    ['raceStart'] = 'The Race starts in',

    ['race'] = 'Race',
    ['place'] = 'Place',
    ['bestTime'] = 'Best Time',
    ['time'] = 'Time',
    ['unkown'] = 'Unkown',

    ['price'] = 'Your Bet:',
    ['win'] = 'Win for first:',
    ['round'] = 'Round',
    ['currentRound'] = 'Current Round'
}

function DrawMarker(type, posX, posY, posZ, dirX, dirY, dirZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, red, green, blue, alpha, bobUpAndDown, faceCamera, p19, rotate, textureDict, textureName, drawOnEnts)
    --EDIT MARKER HERE

    return DM(type, posX, posY, posZ, dirX, dirY, dirZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, 255, 0, 0, alpha, bobUpAndDown, faceCamera, p19, rotate, textureDict, textureName, drawOnEnts)
end

function DebugPrint(...)
    if Config.Debug then
        print('^3DEBUG^0:', ...)
    end
end

function DrawHelpNotify(message)
    SetTextComponentFormat('STRING')
    AddTextComponentString(message)
    DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end

function Notify(title, message, type, timeout)
    TriggerEvent('hex_hud:notify', title, message, type, timeout)
end

function DrawTxt(x, y, text, center, scale, font)
    SetTextFont(font or 4)
    SetTextProportional(0)
    SetTextScale(scale or 0.45, scale or 0.45)
    SetTextColour(255, 255, 255, 255)
    SetTextDropShadow(0, 0, 0, 0,255)
    SetTextEdge(2, 0, 0, 0, 255)
    SetTextDropShadow()
    SetTextOutline()
    SetTextCentre(center == true)
    SetTextEntry("STRING")
    AddTextComponentString(text)
    DrawText(x, y)
end

On this page