🔵
ZaT Scripts
  • Welcome
  • General information
  • 🟦QBCore
    • 🔵Amazon
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Uber Eats
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Foodie
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Tap To Order
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵NoteBook
      • 💻Installation
      • ⚙️Configuration
    • 🔵Elevator
      • 💻Installation
      • ⚙️Configuration
    • 🔵Car Rental
      • 💻Installation
      • ⚙️Configuration
    • 🔵Crafting
      • 💻Installation
      • ⚙️Configuration
      • 📄Blueprints
      • 📄Reputations
      • ⚙️Others
    • 🔵Wash Money
      • 💻Installation
      • ⚙️Configuration
      • 💰More
    • 🔵Store Robbery
      • 💻Installation
      • ⚙️Configuration
    • 🔵Pacific Robbery
      • 💻Installation
      • ⚙️Configuration
    • 🔵Weed
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Genetics
    • 🔵SnrBuns
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Others
    • 🔵Mining PC
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Others
      • 🛒Shops
    • 🔵Garbage Job
      • 💻Installation
      • ⚙️Configuration
      • ⁉️Common Questions
    • 🔵NPC Dialog
      • 💻Installation
      • ⚙️Configuration
      • 💡Reputations
    • 🔵Roof Running
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Laundromat
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵SNR Restaurants
      • 💻Installation
      • ⚙️Configuration
      • ⁉️How To add a new restaurant
    • 🔵Farming & moonshine
      • 💻Installation
      • ⚙️Configuration
      • 🧑‍🔬Genetics
    • 🔵Art Heist
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Maze Bank Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵Clothing Store Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵ATM Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵Cash Exchange Heist
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵MDT
      • 💻Installation
      • ⚙️Configuration
      • ⚠️Dispatch
      • 🕖Events
    • 🔵Gang
      • 💻Installation
      • Exports
      • ⚙️Configuration
      • 🚩Gang Creation
      • 📋Dashboard
      • Members
      • Contracts
      • Turfs
      • Transactions
      • Market
      • Wars
      • Leaderboard
      • Cameras
      • HQ +
    • 🔵GPS Tracker
      • 💻Installation
      • ⚙️Configuration
    • 🔵Pause Menu
      • 💻Installation
      • ⚙️Configuration
    • 🔵Perks
      • 💻Installation
      • ⚙️Configuration
      • Exports
      • ⁉️How To ?
    • 🔵Fleeca
      • 💻Installation
      • ⚙️Configuration
    • 🔵Whiteboard
      • 💻Installation
      • ⚙️Configuration
  • 🟦ESX
    • 🔵Amazon
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Uber Eats
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Foodie
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Tap To Order
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵NoteBook
      • 💻Installation
      • ⚙️Configuration
    • 🔵Crafting
      • 💻Installation
      • ⚙️Configuration
      • 📄Blueprints
      • 📄Reputations
      • ⚙️Others
    • 🔵Elevator
      • 💻Installation
      • ⚙️Configuration
    • 🔵Car Rental
      • 💻Installation
      • ⚙️Configuration
    • 🔵Wash Money
      • 💻Installation
      • ⚙️Configuration
    • 🔵Store Robbery
      • 💻Installation
      • ⚙️Configuration
    • 🔵Pacific Robbery
      • 💻Installation
      • ⚙️Configuration
    • 🔵Weed
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Genetics
    • 🔵SnrBuns
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Others
    • 🔵Mining PC
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Others
      • 🛒Shops
    • 🔵Garbage Job
      • 💻Installation
      • ⚙️Configuration
      • ⁉️Common Questions
    • 🔵NPC Dialog
      • 💻Installation
      • ⚙️Configuration
      • 💡Reputations
    • 🔵Roof Running
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Laundromat
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵SNR Restaurants
      • 💻Installation
      • ⚙️Configuration
      • ⁉️How To add a new restaurant
    • 🔵Farming & moonshine
      • 💻Installation
      • ⚙️Configuration
      • 🧑‍🔬Genetics
    • 🔵Art Heist
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Maze Bank Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵Clothing Store Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵ATM Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵Cash Exchange Heist
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Gang
      • 💻Installation
      • Exports
      • ⚙️Configuration
      • 🚩Gang Creation
      • 📋Dashboard
      • Members
      • Contracts
      • Turfs
      • Transactions
      • Market
      • Wars
      • Leaderboard
      • Cameras
      • HQ +
    • 🔵GPS Tracker
      • 💻Installation
      • ⚙️Configuration
    • 🔵Pause Menu
      • 💻Installation
      • ⚙️Configuration
    • 🔵Perks
      • 💻Installation
      • ⚙️Configuration
      • Exports
      • ⁉️How To ?
    • 🔵Fleeca
      • 💻Installation
      • ⚙️Configuration
    • 🔵Whiteboard
      • 💻Installation
      • ⚙️Configuration
  • 🟦STANDALONE
    • 🔵Code Minigame
      • 💻Installation
      • ⚙️Usage
    • 🔵Menu and Task UI
      • 💻Installation
      • ⚙️Usage
      • ⁉️Common Questions
Powered by GitBook
On this page
  1. QBCore
  2. Cash Exchange Heist

Configuration

Detailed explanation of the config file to adapt the resource to your player needs.

The config.lua

Config = {}

Config.Framework        = "qb" -- "esx"
Config.Inventory        = "ox" -- "qb", "ox", "qs"
Config.QBInventory      = "old" -- new
Config.Target           = "ox" -- ox
Config.FrameworkPseudo  = 'qb-core'
Config.UseInteract      = true -- better to use target
Config.Doorlock         = 'ox'
Config.phone            = 'qb-phone'
Config.Debug            = true -- use /placebox and /placeshoe and /placepc command to place the prop using gizmo and get coords
Config.UseBuckets       = false -- recommended
Config.UseGangApp       = true 
--::::::::::::::::::::::::: NPC DIALOG ::::::::::::::::::::::::::::::
Config.UseNPCDialog     = true
-- Only if NPCDialog is set to false
Config.NPC = {
    model  = "a_m_m_socenlat_01",
    anim   = "CODE_HUMAN_MEDIC_TIME_OF_DEATH",
    coords = vector4(1213.85, -1238.6, 35.33, 92.7)
}
--:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Config.Alarm = {
    started             = false,
    dispatch            = 'qb-core',
    url                 = 'https://www.youtube.com/watch?v=EnRK43JkxJk', -- alarm URL
    time                = 3, -- 3 minutes and the alarm sound will stop
}

Config.MiniumCops       = 0
Config.GenerateTime     = 0
Config.Timeout          = 45
Config.VaultDelay       = 3
Config.MainDoorDelay    = 1
Config.Locations        = {
    main = vector3(135.73, -1337.25, 29.71),
}

Config.Item = {
    name = 'rfid_cloner',
    uses = 5, -- max usage of 1 item
}

Config.Items = {
    printer = 'moneyprinter',
    ink     = 'ink',
    paper   = 'paper',
}

Config.Printer = {
    working = 'prop_cash_printer',
    close   = 'prop_cash_printer_c',
    time    = 1, --1 minute to print a paper (it could take more but will not be more than 2 x time)
    reward  = 'rollcash',
    max     = 100, -- max 100 paper per ink (ink item is useable only once !)
}

Config.Doors = {
    { -- 1
        coords = vector3(134.85, -1332.75, 34.53),
        label  = 'Disable Smart Lock',
        id     = 'cashexchange-1', -- door id
        item   = 'rfid_cloner',
        ped    = vector4(134.53, -1333.10, 34.25, 40.41)
    },
    { -- 2
        coords = vector3(137.34, -1340.52, 28.99),
        label  = 'Disable Electricity',
        id     = 'cashexchange-2', -- door id
        item   = 'rfid_cloner',
        ped    = vector4(137.55, -1340.35, 29.57, 135.59)
    },
    { -- 3
        coords = vector3(125.72, -1342.32, 29.95),
        label  = 'Hack Door',
        id     = 'cashexchange-3', -- door id
        item   = 'rfid_cloner',
        ped    = vector4(125.60, -1342.34, 30.1, 137.59)
    },
    { -- 4
        coords = vector3(133.89, -1344.99, 29.94),
        label  = 'Hack Door',
        id     = 'cashexchange-4', -- door id
        item   = 'rfid_cloner',
        ped    = vector4(134.05, -1344.95, 30.1, 316.02)
    }
}

Config.Trollys = {
    {
        coords      = vector4(132.61, -1337.97, 28.71, 164.0),
        available   = true,
        prop        = 'hei_prop_hei_cash_trolly_01',
        reward      = { name = 'rollcash', info = { worth = 2650 }, amount = 25}, -- only 1 type of reward per trolly
    },
    {
        coords      = vector4(134.19, -1339.73, 28.71, 139.72),
        available   = true,
        prop        = 'hei_prop_hei_cash_trolly_01',
        reward      = { name = 'rollcash', info = { worth = 2650 }, amount = 25}, -- only 1 type of reward per trolly
    },
    {
        coords      = vector4(135.62, -1344.88, 28.71, 48.47),
        available   = true,
        prop        = 'hei_prop_hei_cash_trolly_01',
        reward      = { name = 'rollcash', info = { worth = 2650 }, amount = 25}, -- only 1 type of reward per trolly
    },
    {
        coords      = vector4(131.04, -1339.74, 28.71, 295.91),
        available   = true,
        prop        = 'hei_prop_hei_cash_trolly_01',
        reward      = { name = 'rollcash', info = { worth = 2650 }, amount = 25}, -- only 1 type of reward per trolly
    },    
}

-- IMPORTANT :
-- random one of these (keep it from lower chance to higher) (10% 40% 50%)
-- you must have one with 100% chance at least (check target.lua for more details)
Config.Rewards = { 
    {
        name = 'moneyprinter',
        min  = 1,
        max  = 1, 
        chance = 10, --10% 
        coords = vector3(130.755, -1340.60, 29.71),
        available = true,
    },
    {
        name = 'ink',
        min  = 1,
        max  = 3, 
        chance = 50, --40% 
        coords = vector3(130.755, -1340.60, 29.71),
        available = true,
    },
    {
        name   = 'paper',
        min    = 50,
        max    = 120,
        chance = 100, --100% 
        coords = vector3(130.755, -1340.60, 29.71),
        available = true,
    },
}

Config.Props = {
    ['top'] = {
        coords = vector4(134.85, -1332.75, 34.03, 40.0),
        prop = 'm23_1_prop_m31_electricbox_03a',
    }
    
}

----------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------OPTIMISATION PART --------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------
-- Description  : this part is responsable on deleting the not needed props when no players are nearby
-- refreshprops : is the time to check if there is someone near the props or not
-- radius       : is to check how far is the player from the prop if it is < then the prop will be deleted until someone is nearby...
Config.RefreshProps = 10     -- 15 seconds
Config.Radius       = 100.0  -- if the distance between the player and the prop is < 50 then the prop will be deleted.
----------------------------------------------------------------------------------------------------------------------------------------
PreviousInstallationNextGang App

Last updated 3 months ago

🟦
🔵
⚙️