Config

Config = {}

Config.Locale = GetConvar('esx:locale', 'fr')

Config.Target = false

Config.jobCops = {
    ['police'] = true,
	['sheriff'] = true
}
Config.minCops = 1

Config.Money = 'black_money' -- Use 'money', 'black_money' or 'bank'

Config.MaxGoFast = 10 -- Max GoFast at the same time

Config.blip = {
    activate = true,
    sprite = 280,
    display = 4,
    scale = 0.7,
    color = 21,
    name = 'Go Fast'
}

Config.blipCops = {
    radius = 100.0,
	color = 1, 
	alpha = 128
}

Config.TextUI = {
    Start = {
        message = "[E] - Commencer le gofast",
		position = "top-center",
		icon = 'money-bill',
		borderRadius = 0,
		backgroundColor = '#000000',
		color = 'white'
    },
    Finish = {
        message = "[E] - Donner la merchandise",
		position = "top-center",
		icon = 'money-bill',
		borderRadius = 0,
		backgroundColor = '#000000',
		color = 'white'
    }
}

Config.Notify = function(key, source, ...)
    local service = IsDuplicityVersion()
    if ... then
         Config.Notifications[key].description = (Config.Notifications[key].description):format(...)
    end
    lib.notify(service and source or Config.Notifications[key], service and Config.Notifications[key])
end

Config.time = {
    cooldown = 60000,
    delPoliceBlips = 10000
}

Config.start = {
    pos = {x = 1569.627563, y = -2129.595947, z = 78.330116, h = 190.548843},
    size = vec3(4, 4, 4),
    ped = 'a_m_y_indian_01', 
    type = 'PED_TYPE_CIVMALE',
}

Config.car = {
    spawncar = vector3(1565.637451, -2155.358887, 77.551826),
    heading = 355.157684,
    plate = 'FUCKLSPD'
}

Config.finish = {
    [1] = {
        Pos = vector3(1551.960938, 2189.498535, 78.841339), 
        Heading = 1.923850,
        Ped = 'csb_ramp_gang',
        Type = 'PED_TYPE_CIVMALE'
    },
    [2] = {
        Pos = vector3(35.993629, 6549.077148, 31.425587), 
        Heading = 309.673767,
        Ped = 'g_m_importexport_01',
        Type = 'PED_TYPE_GANG_PUERTO_RICAN'
    },
    [3] = {
        Pos = vector3(-2173.878174, 4282.201660, 49.122738), 
        Heading = 235.893372,
        Ped = 'g_m_y_armgoon_02',
        Type = 'PED_TYPE_GANG_PUERTO_RICAN'
    },
    [4] = {
        Pos = vector3(137.186417, -3098.980225, 5.894764), 
        Heading = 358.678680,
        Ped = 'g_m_y_salvagoon_01',
        Type = 'PED_TYPE_GANG_PUERTO_RICAN'
    },
}

Config.items = {
    [1] = {item = 'water', price = 500},
    [2] = {item = 'radio', price = 1500},
    [3] = {car = 'sultanrs', price = 4500},
    [4] = {car = 'bison', price = 3000}
}

Config.ExportCallPolice = false -- set true if you use Config.Export
Config.Export = function(result)
    --local data = {
    --    code = '10-64', -- string -> The alert code, can be for example '10-64' or a little bit longer sentence like '10-64 - Shop robbery'
    --    default_priority = 'low', -- 'low' | 'medium' | 'high' -> The alert priority
    --    coords = vector3(result.Pos.x, result.Pos.y, result.Pos.z), -- vector3 -> The coords of the alert
    --    job = 'police', -- string | table -> The job, for example 'police' or a table {'police', 'ambulance'}
    --    text = 'Alert here!', -- string -> The alert text
    --    type = 'alerts', -- alerts | shop_robbery | car_robbery | bank_robbery -> The alert type to track stats
    --    blip_time = 5, -- number (optional) -> The time until the blip fades
    --    image = 'url_to_image.jpg', -- string (optional) -> The url to show an image
    --    custom_sound = 'url_to_sound.mp3', -- string (optional) -> The url to the sound to play with the alert
    --    blip = { -- Blip table (optional)
    --        sprite = 54, -- number -> The blip sprite: Find them here (https://docs.fivem.net/docs/game-references/blips/#blips)
    --        colour = 3, -- number -> The blip colour: Find them here (https://docs.fivem.net/docs/game-references/blips/#blip-colors)
    --        scale = 0.7, -- number -> The blip scale
    --        text = 'Car theft', -- number (optional) -> The blip text
    --        flashes = false, -- boolean (optional) -> Make the blip flash
    --        radius = 0, -- number (optional) -> Create a radius blip instead of a normal one
    --    }
    --}
    --TriggerServerEvent('rcore_dispatch:server:sendAlert', data)
end

Last updated