📄Config

Config = {}

Config.Core = "qb-core" -- Your qb-core folder name
Config.Menus = "qb" -- "qb" or "ox"
Config.Menu = "qb-menu" -- Your qb-menu folder name
Config.Target = "qb" -- "qb" or "ox"
Config.TargetName = "qb-target" -- If you use ox ignore this
Config.Debug = false -- If true, some prints are printer on console
Config.Parachute = "gadget_parachute" -- Weapon give to player
Config.Timer = 5 -- 30 Seconds to join on race
Config.Webhook = ""
Config.Command = "rank" -- Command to open a menu with top3 times
Config.Inventory = "qb" -- "qb" or "ox" | If you use quasar leave this on "qb"

Config.Blip = {
    sprite = 572, -- https://docs.fivem.net/docs/game-references/blips/
    scale = 0.8,
    colour = 0,
    name = "Sky Racing",
}

Config.Prize = { -- Prize to the 3 winners of the race
    type = "cash", -- "cash" or "bank"
	min = 500, -- Min amount to pay
	max = 1500, -- Max amount to pay
}

Config.Races = {
    ["Chillad"] = {
        Name = "Chillad", -- Name of the race
        NPCStarting = vector4(456.18, 5571.89, 780.18, 90.25), -- Location where ped spawn
        NPCType = "s_m_y_construct_02", -- Ped name spawning https://docs.fivem.net/docs/game-references/ped-models/
        Target = {
            loc = vector3(456.18, 5571.89, 781.18), -- Location of the target
            icon = "fa-solid fa-clipboard-check", -- Icon of the target
            label = "Start Race", -- Label of the target
        },
        SpawnLocations = { -- Locations when players spawn
            vector4(446.86, 5572.53, 795.32, 88.34),
            vector4(447.32, 5568.87, 795.47, 78.98),
            vector4(447.77, 5574.73, 795.61, 67.95)
        },
        RaceLocations = { -- Locations of marker on air to players go
            [1] = vector3(330.3, 5580.75, 730.8),
            [2] = vector3(133.69, 5597.96, 598.53),
            [3] = vector3(-224.3, 5768.95, 353.6),
            [4] = vector3(-606.35, 5964.18, 126.41),
            [5] = vector3(-929.72, 6174.51, 9.77),
        },
        RaceHeading = 125.0, -- Heading of the circles on air
    },
    ["MazeBank"] = {
        Name = "MazeBank",
        NPCStarting = vector4(-63.9, -803.87, 43.23, 16.39),
        NPCType = "s_m_y_construct_02",
        Target = {
            loc = vector3(-63.9, -803.87, 44.23),
            icon = "fa-solid fa-clipboard-check",
            label = "Start Race",
        },
        SpawnLocations = {
            vector4(-75.76, -824.23, 326.18, 145.05),
            vector4(-72.31, -823.6, 326.18, 156.26),
            vector4(-77.95, -820.66, 326.18, 154.98),
        },
        RaceLocations = {
            [1] = vector3(-65.5, -936.53, 291.65),
            [2] = vector3(18.05, -1218.1, 190.21),
            [3] = vector3(-117.56, -1436.47, 121.25),
            [4] = vector3(-264.59, -1594.79, 66.41),
            [5] = vector3(-369.37, -1776.77, 23.75),
        },
        RaceHeading = 0.0, -- Heading of the circles on air
    },
    -- Add more runs as needed
}

Last updated