Config

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

Config.useTarget = true
Config.useKey = true

Config.Blip = {
    Sprite= 326,
    Display = 4,
    Scale = 0.75,
    AsShortRange = true,
    Colour = 3,
    Text = "Véhicules usagés"
}

Config.SellVehicle = function()
    lib.showTextUI('[E] Vendre véhicule', {
        position = "top-center",
        icon = 'car',
        style = {
            borderRadius = 0,
            backgroundColor = '#48BB78',
            color = 'white'
        }
    })
end

Config.sell_vehicle = vec4(-21.586868, -1677.344360, 29.488277, 127.596931)
Config.buy_vehicle = vec4(-29.856213, -1681.171753, 29.025843, 114.769249)

Config.zones = {
    Vehicles = {
        sphere = vec3(-40.797253, -1680.151123, 29.460289),
        vehicle_location = {
            vec4(-41.249176, -1689.604614, 28.945721, 23.949797),
            vec4(-44.241016, -1690.915894, 28.968401, 24.916267),
            vec4(-47.401199, -1692.140747, 29.031721, 20.010838),
            vec4(-50.322178, -1693.366577, 29.077301, 21.336208),
            vec4(-53.932465, -1694.635986, 29.081598, 359.577393),
            vec4(-57.121895, -1690.824707, 28.867008, 313.114502),
            vec4(-60.565228, -1687.426514, 29.081295, 267.519470),
            vec4(-58.759636, -1684.277954, 29.081331, 240.379532),
            vec4(-56.584270, -1681.810181, 29.081284, 240.658981),
            vec4(-54.755932, -1679.321655, 29.028347, 239.784821),
            vec4(-52.248188, -1677.129883, 28.946321, 239.847946),
            vec4(-52.568718, -1686.593994, 28.867350, 312.983459),
            vec4(-48.429428, -1682.814209, 28.829662, 312.684113),
        }
    }
}

Config.Notify = function(key, source, ...)
    local service = IsDuplicityVersion()
    local description, data
    if ... then
         description = (Config.Notifications[key].description):format(...)
         data = {
            id = Config.Notifications[key].id,
            title = Config.Notifications[key].title,
            description = description,
            position = Config.Notifications[key].position,
            style = Config.Notifications[key].style,
            icon = Config.Notifications[key].icon,
            type = Config.Notifications[key].type,
            iconColor = Config.Notifications[key].iconColor
         }
    end
    lib.notify(service and source or (data or Config.Notifications[key]), service and (data or Config.Notifications[key]))
end
```

Last updated