⚙️ Installation

This structure organizes the content clearly and concisely, making it easy to follow during installation and configuration.

Step 1: Import SQL to Your Database and

Install bd-minigames :

https://github.com/kristiyanpts/bd-minigames

To get started, import the following SQL code into your database to create the cooldown table for ATM robberies :

CREATE TABLE IF NOT EXISTS `atm_robbery_cooldowns` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(50) DEFAULT NULL,
  `player_name` varchar(50) DEFAULT NULL,
  `cooldown_end` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

Framework :

Config.Framework = 'QBCore'  -- Set your Framework to 'QBCore' for QBCore Framework or 'ESX' for (ESX Framework soon not aviable now) 
Config.Core = 'qb-core'  -- Core framework name
Config.Corename = 'QBCore'  -- Core framework alias

Target System :

Config.target = 'qb-target'  -- Set the target system you use (e.g., qb-target, ox_target)
Config.UseTarget = true  -- Set to true if you want to use target system, false for drawtext mode

other settings about robbery :

Config.Language = 'en'  -- Default language (e.g., 'en', 'fr', etc.)

Config.CooldownTime = 1  -- Cooldown time applied to the player (in minutes)

Config.atmCooldowns = 1  -- Cooldown time applied to the robbed ATM (in minutes)

Config.atmTargets = {  -- ATM models (modify only if you know what you're doing)
    `prop_atm_02`,
    `prop_atm_03`,
    `prop_atm_01`,
    `prop_fleeca_atm`,
}
Config.cashPropModel = 'bkr_prop_bkr_cashpile_06'  -- Prop model for cash piles

Config.numCashProps = 1  -- Number of cash piles spawned after a successful robbery

Config.rewardamount = 4  -- Number of rewarded items

Config.money = 2000  -- Amount of cash rewarded

Config.rewardType = 'money'  -- Reward type: "items" or "money"

Config.reward = 'drill'  -- Item rewarded after a bomb-type robbery

Config.RequiredPolice = 0  -- Minimum number of police required online to rob an ATM

Config.removeitem = false  -- Set to true to remove the required item after using it

Config.policejobs = {"police", "sheriff"}  -- Jobs allowed to respond to ATM robberies

Config.Dispatch = 'ps'  -- Dispatch system (options: 'ps', 'cd', 'qs', or 'qb' for no dispatch script)

Config.restrectedjobs = {"police", "sheriff"}  -- Jobs restricted from robbing ATMs

Config.antiglitch = false  -- Enable or disable the anti-glitch system

function antiglitch(src)

    DropPlayer(src, "You have been kicked for attempting to glitch the robbery")

end
Config.BombItem = 'c4_bomb'  -- Required item for bomb-type robbery

Config.Drillitem = 'drill'  -- Required item for drilling ATM

Config.hackitem = 'usb_green'  -- Required item for hacking ATM

Last updated