Configuration

Config.lua

-----------------------------------
--         FIVE | SCRIPTS        --
-----------------------------------

Config = {}

Config.Locale = 'en' -- Set your language u can add custom languages in /locales

Config.Notify = 'ox' -- esx/ox

Config.Target = {
    CheckREP = {
        icon = 'fas fa-car',
        label = 'Check Reputation'
    },
    StartThief = {
        icon = 'fas fa-car',
        label = 'Start Thief'
    }
}

Config.PdAlert = function()
	local data = {displayCode = '10-72A', description = 'vehicle theft', isImportant = 0, recipientList = {'police'}, length = '5000', infoM = 'fa-car', info = 'vehicle theft'}
	local dispatchData = {dispatchData = data, caller = 'Alarm'}
	TriggerServerEvent('wf-alerts:svNotify', dispatchData)
end

Config.Cooldown = 30 -- Cooldown beetween vehicle thefts in minutes

Config.CopsRequied = 0 -- Cops requied to start vehicle theft

Config.TimeToDeactivate = 0.5 --  Time (in minutes) before the transmitter will be deactivated

Config.TimeToAbort = 1 -- Time (in minutes) before the mission will be aborted if the player does not complete the task.

Config.Class = {
    ['F'] = {
        repNeeded = 0, -- REP required to reach this class
        repAdded = 1,  -- REP gained after a successful vehicle theft
        repTaken = 1,  -- REP lost after a failed vehicle theft
        moneyReward = math.random(100, 1000), -- Money reward for a successful vehicle theft, ranging from 100 to 1000        
        cars = { -- A table containing the names of vehicles that can be stolen for the specified class
            "comet2",
        }
    },
    ['E'] = {
        repNeeded = 10,
        repAdded = 1,
        repTaken = 1,
        moneyReward = math.random(100, 1000),
        cars = {
            "comet2",
        }
    },
    ['D'] = {
        repNeeded = 25,
        repAdded = 1,
        repTaken = 1,
        moneyReward = math.random(100, 1000),
        cars = {
            "comet3",
        }    
    },
    ['C'] = {
        repNeeded = 50,
        repAdded = 1,
        repTaken = 1,
        moneyReward = math.random(100, 1000),
        cars = {
            "ninef",
        }
    },
    ['B'] = {
        repNeeded = 100,
        repAdded = 1,
        repTaken = 1,
        moneyReward = math.random(100, 1000),
        cars = {
            "furia",
        }
    },
    ['A'] = {
        repNeeded = 150,
        repAdded = 1,
        repTaken = 1,
        moneyReward = math.random(100, 1000),
        cars = {
            "zentorno",
        }
    }
}

Config.Peds = {
    {
    coords = vector4(896.4997, -288.2849, 65.6308, 352.8043),
    model = 'g_m_y_armgoon_02',
    }
}

Config.RandomPlaces = {
    { x = 153.74,   y = -1449.69, z = 28.78,  h = 319.5},
    { x = 19.82,    y = -1787.95, z = 27.66,  h = 227.5 },
    { x = -846.53,  y = -2301.37, z = 6.35,   h = 175.5 },
    { x = -684.53,  y = -1393.28, z = 4.64,   h = 139.5 },
    { x = -698.57,  y = -988.17,  z = 20.03,  h = 118.5 },
    { x = -1188.98, y = -738.49,  z = 20.01,  h = 126.5 },
    { x = -1378.59, y = 55.9,     z = 53.33,  h = 4.5 },
    { x = -758.07,  y = -36.48,   z = 37.32,  h = 117.5 },
    { x = -375.75,  y = 284.92,   z = 84.5,   h = 195.5 },
    { x = 273.03,   y = 155.81,   z = 103.97, h = 248.5 },
    { x = 974.89,   y = 6.43,     z = 80.68,  h = 146.5 },
    { x = 1199.27,  y = -613.01,  z = 64.41,  h = 95.5 },
    { x = 1345.92,  y = -1549.55, z = 53.2,   h = 38.5 },
    { x = 940.51,   y = -2169.51, z = 30.17,  h = 352.5 },
    { x = 16.6,     y = -888.2,   z = 29.68,  h = 339.5 },
    { x = -229.54,  y = -274.33,  z = 48.6,   h = 71.5 },
    { x = -2325.99, y = 377.01,   z = 174.11, h = 114.5 }
}

Config.Delivery = {
    { x = 153.74,   y = -1449.69, z = 28.78,  h = 319.5},
    { x = 19.82,    y = -1787.95, z = 27.66,  h = 227.5 },
    { x = -846.53,  y = -2301.37, z = 6.35,   h = 175.5 },
    { x = -684.53,  y = -1393.28, z = 4.64,   h = 139.5 },
    { x = -698.57,  y = -988.17,  z = 20.03,  h = 118.5 },
    { x = -1188.98, y = -738.49,  z = 20.01,  h = 126.5 },
    { x = -1378.59, y = 55.9,     z = 53.33,  h = 4.5 },
    { x = -758.07,  y = -36.48,   z = 37.32,  h = 117.5 },
    { x = -375.75,  y = 284.92,   z = 84.5,   h = 195.5 },
    { x = 273.03,   y = 155.81,   z = 103.97, h = 248.5 },
    { x = 974.89,   y = 6.43,     z = 80.68,  h = 146.5 },
    { x = 1199.27,  y = -613.01,  z = 64.41,  h = 95.5 },
    { x = 1345.92,  y = -1549.55, z = 53.2,   h = 38.5 },
    { x = 940.51,   y = -2169.51, z = 30.17,  h = 352.5 },
    { x = 16.6,     y = -888.2,   z = 29.68,  h = 339.5 },
    { x = -229.54,  y = -274.33,  z = 48.6,   h = 71.5 },
    { x = -2325.99, y = 377.01,   z = 174.11, h = 114.5 }
}

Last updated