🥕
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_atmrobbery

Config File

Config = {}

Config.Framework = "newesx" -- "QBCore" or "newesx" or "oldesx"
Config.Notif = "OX" -- "ESX" or "OX" or "okok" or "codem" or "QB"

Config.TargetSystem = "ox_target" -- "ox_target" or "qb-target"

Config.Inventory = "ox_inventory" -- "ox_inventory", "qb-inventory", "esx_inventory" or "qs-inventory"

Config.Cooldown = 600 -- Time between each ATM robbery
Config.DrillTime = 5000 -- Time for drill the ATM
Config.CopNeed = 0 -- Number of police required to start a robbery
Config.CopName = {"police", "sheriff"} -- Police job names for cop check

Config.NeedItems = true -- Is an item required to start the robbery?
Config.ItemRequired = "drill" -- The required item (e.g., "drill")
Config.DrillProp = 'hei_prop_heist_drill' -- The drill prop used during the robbery
Config.ItemTake = false -- Should the item be taken from the player's inventory after the robbery starts?

Config.GiveTypeMoney = 'black_money' -- Money type for rewards (e.g., "black_money" or "cash" in QBCore)
Config.Reward = {1000, 1500} -- The range for the reward amount

Config.Props = { -- ATM prop models for robbery
    "prop_fleeca_atm",
    "prop_atm_01",
    "prop_atm_02"
}

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

Config.Alerts = { -- Alert for cops
    AlertATM = function(playerCoords)
        lib.notify({
            title = "ATM Robbery",
            description = "An ATM robbery has just been launched, check your map!",
            type = 'inform',
        })
        PlaySoundFrontend(-1, "Lose_1st", "GTAO_Magnate_Boss_Modes_Soundset", false)
        local blipId = AddBlipForCoord(playerCoords)
        SetBlipSprite(blipId, 161)
        SetBlipScale(blipId, 0.7)
        SetBlipColour(blipId, 3)
        BeginTextCommandSetBlipName("STRING")
        AddTextComponentString('~b~ATM Robbery')
        EndTextCommandSetBlipName(blipId)
        Wait(80 * 1000)
        RemoveBlip(blipId)
    end,
}

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

Config.Text = {
    Target = "Drilling ATM",
    DrillProg = "Drilling In Progress...",
    ItemRequired = "Missing Item",
    ItemRequiredDesc = "You need a ",
    CopRequired = "Not enough police",
    CopRequiredDesc = "More police officers are needed on duty to start the ATM robbery",
    DrillFailed = "Drilling Failed",
    DrillFailedDesc = "You did not succeed in drilling",
    Reward = "Reward",
    RewardDesc = function(reward)
        return "You received $" .. reward .. "!"
    end,
    Cooldown = "Cooldown",
    CooldownDesc = function(remainingTime)
        return 'You need to wait ' .. remainingTime .. ' minutes before starting a new ATM robbery.'
    end
}
Previouscarotto_atmrobberyNextcarotto_safezones

Last updated 6 days ago