🥕
Carotto Documentation
  • CAROTTO Scripts Documentation
    • 👋Welcome
    • 🔐Escrow System
    • 🛡️DMCA
  • SCRIPTS
    • carotto_npcdoctor
      • Config File
    • carotto_rental
      • Config File
    • carotto_coordsmenu
      • Config File
    • carotto_gofast
      • Config File
    • carotto_police
      • Config File
    • carotto_sheriff
      • Config File
    • carotto_jobcenter
      • Config File
    • carotto_bennys
      • Config File
    • carotto_unicorn
      • Config File
    • carotto_blackmarket
      • Config File
    • carotto_atmrobbery
      • Config File
    • carotto_safezones
      • Config File
    • carotto_loadingscreen
    • carotto_blipscreator
      • Config File
    • carotto_key
      • Config File
    • carotto_taxi
      • Config File
    • carotto_weather
      • Config File
    • carotto_hunting
      • Config File
    • carotto_fishing
      • Config File
    • carotto_garage
      • Config File
    • carotto_marketV2
      • Config File
Powered by GitBook
On this page
  1. SCRIPTS
  2. carotto_gofast

Config File

Config = {}

Config.Framework = "newesx" -- "oldesx" = OLD Version | "newesx" = NEW Version | "qbcore" = QBCore
Config.Notif = "OX" -- "ESX" or "OX" or "csNotif"

Config.Cop = {
    CopRequired = 0, -- number of police required to launch a gofast
    Jobs = {
        'police',   
        'sheriff',    
    },
}

------------------------------

Config.AlertPolice = { -- change alert gofast police here
    AlertGofast = function(playerCoords)
        lib.notify({
            title = Config.Text.AlertPolice,
            description = Config.Text.NotifPolice,
            type = 'inform',
            duration = 4000
        })
        PlaySoundFrontend(-1,"Lose_1st", "GTAO_Magnate_Boss_Modes_Soundset", false); 
    end
}

------------------------------

Config.Progressbar = {
    Time = 1000,
    Text = "Computer connection...",
}

------------------------------

Config.Run = {
    -- NOTE:- If Framework IS QBCore Then Config.Run.TypeMoney Cannot Be 'black_money'
    -- NOTE:- If Framework IS ESX Then Config.Run.TypeMoney Can Be 'black_money' or 'money' or 'bank'
    {
        Title = 'Weed Package',                     -- title in menu
        Desc = 'The reward for this run is $500', -- description in menu
        Image = "https://docs.fivem.net/vehicles/baller3.webp",            -- photo next to button in gofast menu
        Vehicle = 'baller3',                        -- vehicle for gofast
        Plate = 'GOFAST',                          -- plate on vehicle
        Reward = 500,                               -- reward at the end of the gofast
        TypeMoney = 'black_money',                  -- black_money or money or bank
        Icon = 'cannabis',                          -- icon of button in gofast menu
    },

    {
        Title = 'Cocaine Package',                    
        Desc = 'The reward for this run is $1,000', 
        Image = "https://docs.fivem.net/vehicles/kuruma.webp",            
        Vehicle = 'kuruma',                        
        Plate = 'GOFAST',
        Reward = 1000,                            
        TypeMoney = 'money',                
        Icon = 'capsules',                          
    },

    {
        Title = 'Meth Package',                    
        Desc = 'The reward for this run is $1,500', 
        Image = "https://docs.fivem.net/vehicles/sultan2.webp",            
        Vehicle = 'sultan2',                        
        Plate = 'GOFAST',
        Reward = 1500,                            
        TypeMoney = 'bank',                
        Icon = 'tablets',                          
    },

    -- Add others run here if you want :)
}

------------------------------

Config.DeliveryCoords = {
    vector4(1070.70, -2468.96, 28.80, 89.92),
    vector4(778.16, -2525.53, 20.09, 189.44),
    vector4(-1156.47, -1228.74, 6.74, 199.01),
    vector4(-1517.51, -548.99, 33.10, 119.29),
    vector4(510.56, -504.70, 24.75, 307.97),
    vector4(780.72, 224.09, 85.12, 56.09),
    vector4(-122.40, 990.02, 235.70, 343.40),
    vector4(-284.30, 2535.67, 74.66, 183.52),
    vector4(411.13, 2984.76, 40.64, 333.49),
    vector4(1278.65, 3627.79, 32.92, 204.38),
    vector4(2464.95, 4074.94, 38.06, 69.83),
    vector4(2132.94, 4785.93, 40.90, 201.39),
    vector4(1978.32, 5171.54, 47.58, 307.38),
    vector4(1684.83, 6437.32, 32.15, 351.70),

    -- Add others delivery coords here if you want :)
}

------------------------------

Config.Settings = {
    UsePed = true,                                        -- false = don't use ped | true = use ped
    Ped = 'a_m_m_eastsa_01',                              -- model of ped
    PosPed = vector4(879.53, -1604.30, 30.33, 359.73),    -- ped coordinates
    PosTarget = vector3(879.53, -1604.30, 30.3345),       -- target coordinates
    PosVehicle = vector4(882.50, -1598.45, 30.18, 91.44), -- spawn vehicle coordinates
    Icon = 'cannabis',                                         -- target icon
    Cooldown = 60,                                        -- cooldown between each gofast (time in seconds)
    TimeCancel = 15000,                                   -- time before which when the player exits the vehicle the gofast is cancelled (time in milliseconds)
    UseBlip = true,                                       -- set to false if you don't want to use blips
    Blip = { 
        Sprite = 469,  
        Color = 2, 
        Scale = 1.0, 
        Name = "Gofast", 
    }
}

------------------------------

Config.Text = {
    Title = "GoFast - Run Available",
    TargetButton = "Open GoFast Menu",
    StartGofast = "See you at the GPS point! Be quick",
    Success = "Gofast successful ! You have received a reward of $%s.",
    NotifPolice = "A GoFast has been spotted. Intercept it !",
    Congratulations = "Congratulations !",
    NeedMoreCop = "Not enough police in town",
    Error = "Error",
    WaitForNew = "Please wait before starting a new run.",
    AlertPolice = "Alert Police",
    ArrivedDestination = "You've reached your destination!",
    Cancel = "Cancel",
    CancelDesc = "Gofast has been cancelled",
    LimitTime = "Alert",
    LimitTimeDesc = "You have 15 seconds to get back into the vehicle before the gofast cancels.",
}

return Config
Previouscarotto_gofastNextcarotto_police

Last updated 6 days ago