Configuration
```lua
Config = {}
Config.Framework = "esx" -- esx / oldesx / qb / oldqb
Config.Target = "ox_target" -- ox_target / qb-target
Config.Dispatch = "cd_dispatch" -- cd_dispatch / other you can add on client/editable.lua
Config.ProgressBar = "progressBars" -- ox_lib_square / ox_lib_circle / qbcore / progressBars
Config.Inventory = "esx_inventory" -- qb_inventory / esx_inventory / ox_inventory / codem-inventory / qs_inventory
Config.PoliceJobs = { "police", "sheriff" } -- for dispatch system / script have base setup police or sherrifs nothing more
Config.NeedPoliceCount = 0 -- setup how much you need for starting heist, if you setup 2 then must be (2 PD or 1 PD 1 LSSD or 2 LSSD)
Config.RequiredItem = "water" -- setup your item for starting heist
Config.Minigames = "quesar" -- howdy / codem-labgame / quesar
-- Random Banks to robbed
Config.MinHeistATMRob = 1 -- min 1
Config.MaxHeistATMRob = 10 -- max 55
--Finish and robbing money
Config.MoneyItem = "black_money"
Config.MinMoneyGet = 10000
Config.MaxMoneyGet = 50000
Config.FinishMoneyGet = 50 -- precent what NPC you give when you finished heist
Config.RefreshHeist = 18 * 100000 -- on minutes (default is now 30 minutes)
Config.ATMTime = 6 * 100000 -- on minutes (default 10 minutes)
Config.ATMModels = {
"prop_fleeca_atm",
"prop_atm_01",
"prop_atm_02",
"prop_atm_03"
}
Config.StartPedHeist = {
{
coords = vector3(287.48861694336, 142.89430236816, 104.13414001465),
heading = 181.18743896484,
model = "a_m_y_business_01"
}
}
Config.FinishPedHeist = {
{
coords = vector3(1999.2869873047, 5006.318359375, 40.349910736084),
heading = 241.22529602051,
model = "a_m_y_business_01"
}
}
Config.Locale = {
["START_HEIST"] = {
text = "You started Heist and you need rob %s ATM´s for finish heist",
time = 5000,
type = "success"
},
["ROBBING_DONE"] = {
text = "Robbing is done, go to my manager to give him all money and he give you some cash from job!!",
time = 5000,
type = "success"
},
["WAIT"] = {
text = "Thanks, now please wait 1 minute to check and give you your share.",
time = 5000,
type = "error"
},
["FINISHED"] = {
text = "Here is your money, come back to 10 minutes for another job!!",
time = 5000,
type = "success"
},
["COME_BACK"] = {
text = "You don´t need money? Come Back for your money!!",
time = 5000,
type = "error"
},
["NOT_FINISHED"] = {
text = "You don´t have finished your heist, go to finish!!",
time = 5000,
type = "error"
},
["NOT_ITEMS"] = {
text = "You don´t have items for robbery!",
time = 5000,
type = "error"
},
["NOT_ANY_COPS"] = {
text = "There are not any Police or Sherriff on city!!",
time = 5000,
type = "error"
},
["ROBBERED"] = {
text = "You are robbered this ATM, please wait 30 minutes until you can robbed again!",
time = 6000,
type = "info"
},
["CAN_ROBBERED"] = {
text = "You can robbered ATM again!!",
time = 6000,
type = "info"
},
-- ProgressBar and Target Locale
["PR_ROBBING"] = {
text = "Entering to ATM Bank cashier..."
},
["TAR_ATM"] = {
text = "Rob ATM"
},
["TAR_FINISH"] = {
text = "Finish ATM Heist"
},
["TAR_STARTHEIST"] = {
text = "Start ATM Heist"
}
}
Config.ClientNotification = function(msg, time, type)
if Config.Framework == "esx" or Config.Framework == "oldesx" then
TriggerEvent("esx:showNotification", msg)
else
TriggerEvent("QBCore:Notify", msg, time, type)
end
end
Config.ServerNotification = function(src, msg, time, type)
if Config.Framework == "esx" or Config.Framework == "oldesx" then
TriggerClientEvent("esx:showNotification",src, msg)
else
TriggerClientEvent("QBCore:Notify",src, msg, time, type)
end
end
```Last updated