Configuration
Config.lua
-----------------------------------
-- FIVE | CODE --
-----------------------------------
Config = {}
Config.Locale = "en" -- Set your language u can add custom languages in /locales
Config.PoliceJobName = "police" -- Set police job name
Config.PoliceRequired = 1 -- Set Cops Requied to start robbery
-- Here u can Enable and Disable Robbery
Config.LoudRobberyEnabled = true -- set true to enable and false to disable
Config.StealthEnabled = true -- set true to enable and false to disable
Config.StealthRewards = {
{
name = 'money', -- Choices are money, bank, black_money or an item
amount = math.random(100, 1000) -- The random amount you take per cycle (MaxTake is how many times it cycles max)
}
}
Config.LoudRobberyRewards = {
{
name = 'money', -- Choices are money, bank, black_money or an item
amount = math.random(100, 1000) -- The random amount you take per cycle (MaxTake is how many times it cycles max)
}
}
Config.Target = {
LoudLabel = "Rob the cash register", -- Translate Label Here
StealthLabel = "Rob the cash register quietly", -- Translate Label Here
StealthIcon = "fas fa-pen-fancy", -- Choose from https://fontawesome.com/icons
LoudIcon = "fas fa-cash-register", -- Choose from https://fontawesome.com/icons
}
Config.Notify = 'ox' -- esx or ox
Config.LoudDuration = 30000 -- Duration of stealing the money in miliseconds (progresbar)
Config.StealthDuration = 30000 -- Duration of stealing the money in miliseconds (progresbar)
Config.LoudCooldown = 600 -- Cooldown between robberies in seconds 600 - 10 minutes
Config.StealthCooldown = 1200 -- Cooldown between robberies in seconds 1200 - 20 minutes
Config.Lockpick = 'lockpick' -- Item requied to start Stealth Robbery
Config.AdvancedLockpick = 'advancedlockpick' -- Item requied to start Stealth Robbery
Config.Pins = 5 -- Number of pins in minigame from 3 to 9
Config.Props = { -- props that u can rob
"prop_till_01", "prop_till_02"
}
Config.AlertPD = function(coords, str)
local data = {displayCode = '10-90', description = 'Alarm', isImportant = 0, recipientList = {'police'}, length = '20000', infoM = 'fa-info-circle', info = 'Store Robbery'}
local dispatchData = {dispatchData = data, caller = 'Alarm', coords = GetEntityCoords(GetPlayerPed(source))}
TriggerServerEvent('wf-alerts:svNotify', dispatchData)
endLast updated