Config File
Config = {}
Config.Framework = "newesx" -- "QBCore" or "newesx" or "oldesx"
Config.Notif = "OX" -- "ESX" or "OX" or "csNotify" or "okok" or "codem" or "QB"
Config.TargetSystem = "ox_target" -- "ox_target" or "qb-target"
Config.Inventory = "ox_inventory" -- "ox_inventory", "qb-inventory", or "esx_inventory"
Config.Cooldown = 600 -- Time between each ATM robbery
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 failed the drilling process. Wait for the cooldown to attempt another robbery.",
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
}
Last updated