Araba ve Motokros Yarışı

Bilgilendirme

Harita üzerinde Motokros ve Sokak yarışı olarak belirtilen noktalara gidip, diğer oyuncularla yarışabilirsiniz.


Araba Sokak Yarışı
Motokros Yarışı
racing
Config = {
    Core = 'QBCORE',  -- STANDALONE / ESX / QBCORE | Other core setting on the 'core' folder and the client and server utils.lua
    Spectate = true,  -- Spectate menu | true / false
    StartAnimation = true, -- Vehicle Camera Animation before the race | true / false
    DisableControls = {75}, -- Disables controls when the Player in Race | More keys: https://docs.fivem.net/docs/game-references/controls/
    SpecDisableControls = {202}, -- Disables controls when the Player in Spectator Mode | More keys: https://docs.fivem.net/docs/game-references/controls/
    AfkKick = {Use = true, CheckTime = 5}, -- When player afk in the Race, get kick out of the race? | true / false
    PlateText = 'RACER', -- The Race Vehicle Plate | Example: 'RACER 12' | RACER + RACER ID

    Races = { 

        -- Separate --

        ['Motokros Yarışı'] = {
            MenuText = '~b~Motokros Yarışı ~w~oluşturmak için ~h~[E]~h~ basınız',
            OpenMenuMarker = {distance = 15, opendistance = 2.5, sprite = 1, rotation = false, upanddown = false, brightness = 100, sizes = {x = 1.5, y = 1.5, z = 1.2}},
            
            MenuColor = {r = 76, g = 21, b = 201},
            Image = 'motorcross.png',

            StartPlace = {x = 876.9960, y = 2353.6643, z = 51.1639},
            Blip = {Use = true, sprite = 379, color = 38, size = 0.9},
            
            Countdown = 3,
            MaximumLaps = 10,
            Vehicles = {
                {Label = 'Sanchez', Model = 'sanchez'},
                {Label = 'Sanchez 2', Model = 'sanchez2'},
                {Label = 'BF400', Model = 'bf400'},
            },
            
            MinimumPlayerToStart = 1,
            StartPositions = {
                [1] = {x = 891.4086, y = 2371.3882, z = 50.7886, heading = 186.1757}, 
                [2] = {x = 894.2198, y = 2371.9565, z = 51.0189, heading = 186.4175},
                [3] = {x = 890.9589, y = 2376.4568, z = 50.9534, heading = 186.5240},
                [4] = {x = 893.5837, y = 2376.1418, z = 50.8579, heading = 186.5240},
                [5] = {x = 893.81, y = 2380.1, z = 50.23, heading = 186.5240},
                [6] = {x = 891.22, y = 2380.55, z = 50.29, heading = 186.5240},
            },

            UseBlipRoute = false,
            CheckPoints = {
                [1] = {type = 'CHECK', x = 912.6369, y = 2266.5212, z = 44.6082},
                [2] = {type = 'CHECK', x = 1047.7155, y = 2193.2375, z = 44.4257},
                [3] = {type = 'CHECK', x = 1093.2423, y = 2160.5864, z = 52.8970},  
                [4] = {type = 'CHECK', x = 1164.6794, y = 2160.4233, z = 53.5996},
                [5] = {type = 'CHECK', x = 1104.5979, y = 2251.5044, z = 48.2457}, 
                [6] = {type = 'CHECK', x = 1000.3408, y = 2255.0613, z = 46.8931},
                [7] = {type = 'CHECK', x = 972.2839, y = 2393.9055, z = 51.0686},
                [8] = {type = 'CHECK', x = 1108.6628, y = 2410.5945, z = 50.1342},
                [9] = {type = 'CHECK', x = 1166.1816, y = 2263.1521, z = 49.7072},
                [10] = {type = 'CHECK', x = 1157.9310, y = 2472.8311, z = 53.4489},
                [11] = {type = 'CHECK', x = 982.0073, y = 2453.8176, z = 49.4780},  
                [12] = {type = 'CHECK', x = 912.4703, y = 2484.0940, z = 51.7866}, 
                [13] = {type = 'FINISH', x = 896.0545, y = 2345.9719, z = 51.8621},  
            },
            
            CheckPointsMarkers = {
                AcceptDistance = 7.0,
                CheckPoints = {sprite = 32, size = 7.0, height = -1.0, r = 236, g = 240, b = 41, r2 = 108, g2 = 183, b2 = 220},
                NewLap = {sprite = 3, size = 7.0, height = -1.0, r = 255, g = 167, b = 95, r2 = 11, g2 = 79, b2 = 217},
                Finish = {sprite = 4, size = 8.0, height = -1.0, r = 255, g = 0, b = 0, r2 = 255, g2 = 255, b2 = 255},
            },
            
            Blips = {
                Racer = {Use = true, label = 'Racer', sprite = 1, color = 0, size = 0.5},
                Checkpoint = {label = 'Checkpoint', sprite = 1, color = 46, size = 0.8},
                NewLap = {label = 'New Lap', sprite = 1, color = 44, size = 0.9},
                Finish = {label = 'Finish', sprite = 1, color = 1, size = 0.9},
            },
            
        },

        -- Separate --

        ['Sokak Yarışı'] = {
            MenuText = '~g~Sokak Yarışı ~w~oluşturmak için ~h~[E]~h~ basınız',
            OpenMenuMarker = {distance = 15, opendistance = 2.5, sprite = 1, rotation = false, upanddown = false, brightness = 100, sizes = {x = 1.5, y = 1.5, z = 1.2}},
            
            MenuColor = {r = 76, g = 21, b = 201},
            Image = 'street.png',

            StartPlace = {x = -961.9890, y = -189.7292, z = 37.6835},
            Blip = {Use = true, sprite = 315, color = 2, size = 0.9},
            
            Countdown = 3,
            MaximumLaps = 10,
            Vehicles = {
                {Label = 'Tyrant', Model = 'tyrant'},
                {Label = 'Zentorno', Model = 'zentorno'},
                {Label = 'T20', Model = 't20'},
                {Label = 'Tigon', Model = 'tigon'},
                {Label = 'Krieger', Model = 'krieger'},
                {Label = 'Dominator', Model = 'dominator2'},
                {Label = 'Gauntlet', Model = 'gauntlet2'},
                {Label = 'Deviant', Model = 'deviant'},
            },
            
            MinimumPlayerToStart = 1,
            StartPositions = {
                [1] = {x = -962.0258, y = -240.8427, z = 38.0107, heading = 237.6622},
                [2] = {x = -961.9005, y = -233.7914, z = 37.8917, heading = 237.6622},
                [3] = {x = -971.9515, y = -235.2534, z = 37.9062, heading = 237.6622},
                [4] = {x = -971.0941, y = -228.3710, z = 37.8791, heading = 237.6622},
                [5] = {x = -965.68, y = -223.5, z = 37.68, heading = 237.6622},
                [6] = {x = -955.89, y = -228.24, z = 37.78, heading = 237.6622},
                [7] = {x = -953.97, y = -237.99, z = 38.07, heading = 237.6622},
                [8] = {x = -954.24, y = -245.0, z = 38.23, heading = 237.6622},
                [9] = {x = -947.65, y = -232.73, z = 38.21, heading = 237.6622},
                [10] = {x = -947.35, y = -241.46, z = 38.47, heading = 237.6622},
                [11] = {x = -947.18, y = -248.62, z = 38.58, heading = 237.6622},
                [12] = {x = -940.85, y = -236.51, z = 38.65, heading = 237.6622},
            },

            UseBlipRoute = true,
            CheckPoints = {
                [1] = {type = 'CHECK', x = -640.9636, y = -378.6581, z = 34.7035},
                [2] = {type = 'CHECK', x = -585.4349, y = -834.8732, z = 26.1865},
                [3] = {type = 'CHECK', x = -501.0806, y = -843.0291, z = 30.4747},
                [4] = {type = 'CHECK', x = -536.8833, y = -1041.8157, z = 22.7209},
                [5] = {type = 'CHECK', x = -268.9235, y = -1120.8202, z = 23.1038}, 
                [6] = {type = 'CHECK', x = -191.3755, y = -891.9453, z = 29.3437}, 
                [7] = {type = 'CHECK', x = -281.8544, y = -841.9296, z = 31.7544}, 
                [8] = {type = 'CHECK', x = -249.4979, y = -636.7039, z = 33.5503},
                [9] = {type = 'CHECK', x = -207.0967, y = -427.7849, z = 32.7965},
                [10] = {type = 'CHECK', x = -412.7425, y = -229.0907, z = 36.2574},
                [11] = {type = 'CHECK', x = -571.3403, y = -65.1246, z = 42.0321}, 
                [12] = {type = 'FINISH', x = -906.9836, y = -178.2199, z = 37.6483},
            },
            
            CheckPointsMarkers = {
                AcceptDistance = 7.0,
                CheckPoints = {sprite = 32, size = 7.0, height = -1.0, r = 236, g = 240, b = 41, r2 = 108, g2 = 183, b2 = 220},
                NewLap = {sprite = 3, size = 7.0, height = -1.0, r = 255, g = 167, b = 95, r2 = 11, g2 = 79, b2 = 217},
                Finish = {sprite = 4, size = 8.0, height = -1.0, r = 255, g = 0, b = 0, r2 = 255, g2 = 255, b2 = 255},
            },
            
            Blips = {
                Racer = {Use = true, label = 'Racer', sprite = 1, color = 0, size = 0.5},
                Checkpoint = {label = 'Checkpoint', sprite = 1, color = 46, size = 0.8},
                NewLap = {label = 'New Lap', sprite = 1, color = 44, size = 0.9},
                Finish = {label = 'Finish', sprite = 1, color = 1, size = 0.9},
            },
        },

        -- You can add more Races...
    },

    -----------------------------------------------------------
    ---------------------| ADMIN COMMANDS |--------------------
    -----------------------------------------------------------

    AdminGroups = {'god', 'admin', 'mod'},  -- Only if the Core = ESX / QBCORE
    IdentifierPermission = false,
    Admins = {
        'discord:385164413671571456',
        'discord:692782027866636308',

        --[[ TYPES ]]--
        -- 'steam:123456789',
        -- 'license:123456789',
        -- 'fivem:123456789',
        -- 'ip:123456789',
        -- 'discord:123456789',
    },

    AdminCommands = {
        ShowRaces = {Use = true, Command = 'showraces'},  -- /showraces
        CloseParty = {Use = true, Command = 'closeparty'}, -- /closeparty [Race Name] | Use the /showraces to get the partys names
        KickPlayer = {Use = true, Command = 'kickplayer'}, -- /kickplayer [Player ID]
    },
    
    -----------------------------------------------------------
    -----------------------| TRANSLATE |-----------------------
    -----------------------------------------------------------

    MoneyForm = '$',
    Notify = {
        [1] =  {'Racing', "Yarış çoktan başladı!", 5000, 'error'},
        [2] =  {'Racing', "Yarış dolu!", 5000, 'error'},
        [3] =  {'Racing', "Sen zaten yarıştasın!", 5000, 'error'},
        [4] =  {'Racing', "Minimum oyuncu yok!", 5000, 'error'},
        [5] =  {'Racing', "Yarış zaten oluşturuldu!", 5000, 'error'},
        [6] =  {'Racing', "Yeterli paran yok!", 5000, 'error'},
        [7] =  {'Racing', "Yarışa başarıyla katıldınız!", 5000, 'success'},
        [8] =  {'Racing', "İsteğiniz kabul edilmelidir!", 5000, 'info'},
        [9] =  {'Racing', "İsteğiniz kabul edildi!", 5000, 'success'},
        [10] =  {'Racing', "İsteğiniz reddedildi!", 5000, 'error'},
        [11] =  {'Racing', "Yarıştan atıldın!", 5000, 'error'},
        [12] =  {'Racing', "Zaten Bekleme listesindesin!", 5000, 'error'},
        [13] =  {'Racing', "Araçta iken menüyü açamazsınız!", 5000, 'error'},
        [14] =  {'Racing', "Yarıştan ayrılamazsın!", 5000, 'error'},
        [15] =  {'Racing', "Durum panelini kapattınız", 5000, 'info'},
        [16] =  {'Racing', "Yarıştan atıldın! (AFK)", 5000, 'info'},
        [17] =  {'Racing', "Çok uzaklara gittin!<br>Yarış bitirildi!", 5000, 'error'},
        [18] =  {'Racing', "Yarış İsimleri:", 5000, 'info'},
        [19] =  {'Racing', "Bu komutu kullanma izniniz yok!", 5000, 'error'},
        [20] =  {'Racing', "Geçersiz Oyuncu ID!", 5000, 'error'},
        [21] =  {'Racing', "Geçersiz Yarış! [Kullan: /showraces]", 5000, 'error'},
        [22] =  {'Racing', "Yarış başarıyla kapatıldı!", 5000, 'success'},
        [23] =  {'Racing', "Ödülünüzü aldınız:<b>", 5000, 'success'},
        [24] =  {'Racing', "Oyuncu bir yarışta değil!", 5000, 'error'},
        [25] =  {'Racing', "Bir Yönetici tarafından yarıştan atıldınız!", 5000, 'error'},
        [26] =  {'Racing', "Oyuncu atıldı", 5000, 'success'},
    }
}

Last updated