Config

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

Config.KeyToClose = false

Config.NoClip = {
    text = 'No clip',
    key = 'f3',
    perms = {
        admin = true,
        mod = true,
        help = true,
    }
}

Config.Webhooks = {
	link = "https://discord.com/api/webhooks/1288533160124092487/T1_xE0hOp1_-b8P9WiPnNWsFWNmVo7ASMIfJL8V5iOq",
	botname = 'FW Scripts',
	description = 'fw_admin',
	color = '16744192'
}

Config.Class = {
    {name = 'Voitures', value = 'automobile'},
    {name = 'Motos', value = 'bike'},
    {name = 'Bateaux', value = 'boat'},
    {name = 'Helicopters', value = 'heli'},
    {name = 'Avions', value = 'plane'}
}

Config.Keyboard = 'f10'
Config.StopSpec = {
    key = 38,
    msg = 'E - Pour ârreter de spec',
    msg_position = 'top-center',
    icon = 'eye',
    style = {
        borderRadius = 0,
        backgroundColor = '#000000',
        color = 'white'
    }
}

Config.VehicleShop = 'fw_vehicle_seller' -- Use your vehicleshop name folder
Config.ReviveEvent = 'fw_ambulancejob:revive'

Config.Group = {
    admin = true,
    mod = true,
    help = true,
}

Config.colorGroups = { -- https://docs.fivem.net/docs/game-references/hud-colors/
    ['admin'] = 172,
    ['mod'] = 35,
    ['help'] = 0,
}

Config.Money = {
    {name = 'Argent', value = 'money'},
    {name = 'Argent banque', value = 'bank'},
    {name = 'Argent sale', value = 'black_money'}
}

Config.setGroup = {
    {name = 'Administrateur', value = 'admin'},
    {name = 'Modérateur', value = 'mod'},
    {name = 'Helpeur', value = 'help'}
}

Config.Filter = {
    ['admin'] = '3',
    ['mod'] = '2',
    ['help'] = '1'
}

Config.OrderMenu = { -- If you change order, the buttons on menu change to
    'clothing',
    'onlinePlayers',
    'reports',
    'bans',
    'teleport',
    'weather',
    'optionsAdms'
}

Config.UseClothing = true -- if this false you use ped
Config.StaffCloth = {
    ['admin'] = {
        [0] = {    
            ['bags_1'] = 0, ['bags_2'] = 0,
            ['tshirt_1'] = 15, ['tshirt_2'] = 2,
            ['torso_1'] = 178, ['torso_2'] = 5,
            ['arms'] = 31,
            ['pants_1'] = 77, ['pants_2'] = 5,
            ['shoes_1'] = 55, ['shoes_2'] = 5,
            ['mask_1'] = 0, ['mask_2'] = 0,
            ['bproof_1'] = 0,
            ['chain_1'] = 0,
            ['helmet_1'] = 91, ['helmet_2'] = 5,
        },
        [1] = {    
            ['bags_1'] = 0, ['bags_2'] = 0,
            ['tshirt_1'] = 15, ['tshirt_2'] = 2,
            ['torso_1'] = 178, ['torso_2'] = 5,
            ['arms'] = 31,
            ['pants_1'] = 77, ['pants_2'] = 5,
            ['shoes_1'] = 55, ['shoes_2'] = 5,
            ['mask_1'] = 0, ['mask_2'] = 0,
            ['bproof_1'] = 0,
            ['chain_1'] = 0,
            ['helmet_1'] = 4, ['helmet_2'] = 5,
        },
    },
    ['mod'] = {
        [0] = {    
            ['bags_1'] = 0, ['bags_2'] = 0,
            ['tshirt_1'] = 15, ['tshirt_2'] = 2,
            ['torso_1'] = 178, ['torso_2'] = 5,
            ['arms'] = 31,
            ['pants_1'] = 77, ['pants_2'] = 5,
            ['shoes_1'] = 55, ['shoes_2'] = 5,
            ['mask_1'] = 0, ['mask_2'] = 0,
            ['bproof_1'] = 0,
            ['chain_1'] = 0,
            ['helmet_1'] = 91, ['helmet_2'] = 5,
        },
        [1] = {    
            ['bags_1'] = 0, ['bags_2'] = 0,
            ['tshirt_1'] = 15, ['tshirt_2'] = 2,
            ['torso_1'] = 178, ['torso_2'] = 5,
            ['arms'] = 31,
            ['pants_1'] = 77, ['pants_2'] = 5,
            ['shoes_1'] = 55, ['shoes_2'] = 5,
            ['mask_1'] = 0, ['mask_2'] = 0,
            ['bproof_1'] = 0,
            ['chain_1'] = 0,
            ['helmet_1'] = 4, ['helmet_2'] = 5,
        },
    }
}

Config.StaffPed = {
    ['admin'] = 's_m_m_movalien_01',
    ['mod'] = 's_m_m_movalien_01'
}

Config.managePlayer = {'optionsPlayers', 'optionsTP', 'optionsVehicles', 'optionsManage'}
Config.optionsPlayers = {'openInventory', 'giveItem', 'giveMoney', 'setGroup', 'setJob', 'spectate'}
Config.optionsTP = {'revive', 'heal', 'kill', 'tp', 'rtp', 'goto', 'freeze', 'unfreeze'}
Config.optionsVehicles = {'giveVeh', 'seeVeh'}
Config.optionsManage = {'getWarns', 'giveWarn', 'jail', 'unjail', 'wipe', 'kick', 'ban'}
Config.bans = {'getbans', 'offlinebans'}

Config.Perms = {
    ['clothing'] = {'2'},
    ['onlinePlayers'] = {'2'},
        ['optionsPlayers'] = {'2'},
            ['openInventory'] = {'2'},
            ['giveItem'] = {'3'},
            ['giveMoney'] = {'3'},
            ['setGroup'] = {'3'},
            ['setJob'] = {'2'},
            ['spectate'] = {'1'},
        ['optionsTP'] = {'2'},
            ['revive'] = {'2'},
            ['heal'] = {'2'},
            ['kill'] = {'2'},
            ['tp'] = {'2'},
            ['rtp'] = {'2'},
            ['goto'] = {'2'},
            ['freeze'] = {'2'},
            ['unfreeze'] = {'2'},
        ['optionsVehicles'] = {'2'},
            ['giveVeh'] = {'2'},
            ['seeVeh'] = {'2'},
        ['optionsManage'] = {'2'},
            ['getWarns'] = {'3'},
            ['giveWarn'] = {'2'},
            ['jail'] = {'2'},
            ['unjail'] = {'2'},
            ['wipe'] = {'3'},
            ['kick'] = {'2'},
            ['ban'] = {'3'},
    ['reports'] = {'3'},
    ['bans'] = {'3'},
        ['getbans'] = {'3'},
        ['offlinebans'] = {'3'},
    ['teleport'] = {'2'},
    ['weather'] = {'2'},
    ['optionsAdms'] = {'3'},
        ['CoordsMenu'] = {'3'},
        ['clear'] = {'3'},
        ['resources'] = {'3'},
        ['announce'] = {'3'},
        ['optionsMe'] = {'3'}
}

Config.MeOptions = {
    show_id = true,
    invincible = true,
    visible = true,
    pedmove = true,
    swim = true,
    noclip = true,
    blip_players = true,
}

Config.Warn = {
    {name = 'Non-respect des règles du serveur'},
    {name = 'Insultes et comportement toxique'},
    {name = 'Non-respect des règles de RP'},
    {name = 'Meta-gaming'},
    {name = 'Power gaming'},
    {name = 'Exploitation de bugs'},
    {name = 'Harcèlement'},
    {name = 'Non-respect du staff'},
    {name = 'Utilisation de cheats ou de mods interdits'},
    {name = 'Noms inappropriés'},
    {name = 'Publicité non autorisée'},
    {name = 'Utilisation abusive des véhicules'},
    {name = 'Non-respect des scénarios RP'}
}

Config.Jail = {
    coords = {
        inside = vec3(1651.621948, 2569.859375, 45.556763),
        outside = vec3(1846.628540, 2585.854980, 45.657837),
    },
}

Config.Wipe = {
    {table = 'users', value = 'identifier'},
    {table = 'owned_vehicles', value = 'owner'}
}

Config.Teleport = {
    {name = 'Aéroport', coords = vec3(-1033.859375, -2730.778076, 20.046143), icon = 'plane'},
    {name = 'Banque Central', coords = vec3(222.19, 209.25, 105.5), icon = 'building-columns'},
    {name = 'Hôpital', coords = vec3(281.91, -586.55, 43.29), icon = 'hospital'},
    {name = 'Parking Central', coords = vec3(215.986816, -809.815369, 30.712036), icon = 'square-parking'}
}

Config.Weather = {
    {name = 'Changer heure', icon = 'clock', iconColor = 'white'},
    {name = 'Clair', value = 'CLEAR', icon = 'sun', iconColor = 'white'},
    {name = 'Très ensoleillé', value = 'EXTRASUNNY', icon = 'sun', iconColor = 'yellow'},
    {name = 'Nuageux', value = 'CLOUDS', icon = 'cloud', iconColor = 'white'},
    {name = 'Couvert', value = 'OVERCAST', icon = 'cloud', iconColor = 'grey'},
    {name = 'Pluie', value = 'RAIN', icon = 'umbrella', iconColor = 'white'},
    {name = 'En train de se dégager', value = 'CLEARING', icon = 'cloud-sun', iconColor = 'white'},
    {name = 'Orage', value = 'THUNDER', icon = 'bolt-lightning', iconColor = 'white'},
    {name = 'Brouillard (pollution)', value = 'SMOG', icon = 'smog', iconColor = 'grey'},
    {name = 'Brouillard', value = 'FOGGY', icon = 'smog', iconColor = 'white'},
    {name = 'Noël (peut-être avec de la neige)', value = 'XMAS', icon = 'snowflake', iconColor = 'white'},
    {name = 'Léger enneigé', value = 'SNOWLIGHT', icon = 'snowflake', iconColor = 'grey'},
    {name = 'Tempête de neige', value = 'BLIZZARD', icon = 'icicles', iconColor = 'white'}
}

Config.Report = {
    {name = 'Report de triche ou de comportement nuisible'},
    {name = 'Report de bugs'},
    {name = 'Report de non-respect des règles du serveur'},
    {name = 'Report de contenu inapproprié'},
    {name = 'Report de problèmes liés au gameplay'},
    {name = 'Report de déséquilibre'},
    {name = 'Report de tricherie économique'},
    {name = 'Report de harcèlement'},
    {name = 'Report de spam'},
    {name = 'Report de problèmes de connexion'}
}

Config.ColorsList = {
    {label = 'Noir', id = 0},
    {label = 'Graphite', id = 1},
    {label = 'Noir métalisé', id = 2},
    {label = 'Acier fondu', id = 3},
    {label = 'Argenté', id = 4},
    {label = 'Gris métallisé', id = 5},
    {label = 'Acier laminé', id = 6},
    {label = 'Gris foncé', id = 7},
    {label = 'Gris rocheux', id = 8},
    {label = 'Gris nuit', id = 9},
    {label = 'Anthracite', id = 10},
    {label = 'Noir anthracite', id = 11},
    {label = 'Noir matte', id = 12},
    {label = 'Gris matte', id = 13},
    {label = 'Noir brillant', id = 14},
    {label = 'Nuit sombre', id = 15},
    {label = 'Gris profond', id = 16},
    {label = 'Gris bitume', id = 17},
    {label = 'Gris béton', id = 18},
    {label = 'Argent sombre', id = 19},
    {label = 'Magnésite', id = 20},
    {label = 'Pétrole', id = 21},
    {label = 'Argent', id = 22},
    {label = 'Zinc', id = 23},
    {label = 'Dolomite', id = 24},
    {label = 'Argent bleuté', id = 25},
    {label = 'Rouge métallisé', id = 26},
    {label = 'Rouge', id = 27},
    {label = 'Rouge turin', id = 28},
    {label = 'Coquelicot', id = 29},
    {label = 'Rouge cuivré', id = 30},
    {label = 'Rouge cardinal', id = 31},
    {label = 'Rouge brique', id = 32},
    {label = 'Grenat', id = 33},
    {label = 'Pourpre', id = 34},
    {label = 'Tangerine', id = 35},
    {label = 'Or', id = 36},
    {label = 'Orange', id = 37},
    {label = 'Rouge matte', id = 38},
    {label = 'Rouge foncé', id = 39},
    {label = 'Orange matte', id = 40},
    {label = 'Jaune', id = 41},
    {label = 'Rouge pulpeux', id = 42},
    {label = 'Rouge brillant', id = 43},
    {label = 'Cuivre', id = 44},
    {label = 'Rouge pale', id = 45},
    {label = 'Marron clair', id = 46},
    {label = 'Marron foncé', id = 47},
    {label = 'Vert foncé', id = 48},
    {label = 'Vert rally', id = 49},
    {label = 'Vert sapin', id = 50},
    {label = 'Vert olive', id = 51},
    {label = 'Vert clair', id = 52},
    {label = 'Topaze', id = 53},
    {label = 'Vert lime', id = 54},
    {label = 'Vert forêt', id = 55},
    {label = 'Vert pelouse', id = 56},
    {label = 'Vert impérial', id = 57},
    {label = 'Vert bouteille', id = 58},
    {label = 'Bleu clair', id = 59},
    {label = 'Bleu galaxy', id = 60},
    {label = 'Bleu foncé', id = 61},
    {label = 'Bleu azur', id = 62},
    {label = 'Bleu marine', id = 63},
    {label = 'Lapis lazuli', id = 64},
    {label = 'Acier bleu', id = 65},
    {label = 'Bleu diamant', id = 66},
    {label = 'Surfer', id = 67},
    {label = 'Pastel', id = 68},
    {label = 'Bleu celeste', id = 69},
    {label = 'Indigo', id = 70},
    {label = 'Violet profond', id = 71},
    {label = 'Bleu rally', id = 72},
    {label = 'Bleu paradis', id = 73},
    {label = 'Bleu nuit', id = 74},
    {label = 'Violet foncé', id = 75},
    {label = 'Bleu cyan', id = 76},
    {label = 'Cobalt', id = 77},
    {label = 'Bleu electrique', id = 78},
    {label = 'Bleu horizon', id = 79},
    {label = 'Améthyste', id = 80},
    {label = 'Bleu métallisé', id = 81},
    {label = 'Aqua marine', id = 82},
    {label = 'Bleu agathe', id = 83},
    {label = 'Zirconium', id = 84},
    {label = 'Spinelle', id = 85},
    {label = 'Tourmaline', id = 86},
    {label = 'Jaune Blé', id = 87},
    {label = 'Jaune rally', id = 88},
    {label = 'Bronze', id = 89},
    {label = 'Jaune clair', id = 90},
    {label = 'Vert citron', id = 91},
    {label = 'Champagne', id = 92},
    {label = 'Marron métallisé', id = 93},
    {label = 'Expresso', id = 94},
    {label = 'Chocolat', id = 95},
    {label = 'Terre cuite', id = 96},
    {label = 'Marbre', id = 97},
    {label = 'Sable', id = 98},
    {label = 'Sépia', id = 99},
    {label = 'Bison', id = 100},
    {label = 'Palmier', id = 101},
    {label = 'Caramel', id = 102},
    {label = 'Rouille', id = 103},
    {label = 'Chataigne', id = 104},
    {label = 'Vanille', id = 105},
    {label = 'Crème', id = 106},
    {label = 'Marron', id = 107},
    {label = 'Noisette', id = 108},
    {label = 'Coquillage', id = 109},
    {label = 'Blanc', id = 110},
    {label = 'Blanc polair', id = 111},
    {label = 'Beige', id = 112},
    {label = 'Acajou', id = 113},
    {label = 'Chaudron', id = 114},
    {label = 'Blond', id = 115},
    {label = 'Chrome brossé', id = 116},
    {label = 'Chrome noir', id = 117},
    {label = 'Aluminium brossé', id = 118},
    {label = 'Chrome', id = 119},
    {label = 'Blanc matte', id = 120},
    {label = 'Neige', id = 121},
    {label = 'Orange clair', id = 122},
    {label = 'Pèche', id = 123},
    {label = 'Vert anis', id = 124},
    {label = 'Jaune pâle', id = 125},
    {label = 'Paradis', id = 126},
    {label = 'Kaki', id = 127},
    {label = 'Gravillon', id = 128},
    {label = 'Citrouille', id = 129},
    {label = 'Coton', id = 130},
    {label = 'Albâtre', id = 131},
    {label = 'Vert armée', id = 132},
    {label = 'Blanc pure', id = 133},
    {label = 'Rose electrique', id = 134},
    {label = 'Rose saumon', id = 135},
    {label = 'Rose dragée', id = 136},
    {label = 'Orange', id = 137},
    {label = 'Vert', id = 138},
    {label = 'Bleu', id = 139},
    {label = 'Bleu minuit', id = 140},
    {label = 'Violet mystique', id = 141},
    {label = 'Rouge vin', id = 142},
    {label = 'Gris chasseur', id = 143},
    {label = 'Violet métallisé', id = 144},
    {label = 'Bleu interdit', id = 145},
    {label = 'Carbone', id = 146},
    {label = 'Violet matte', id = 147},
    {label = 'Violet profond matte', id = 148},
    {label = 'Volcano', id = 149},
    {label = 'Vert sombre', id = 150},
    {label = 'Vert chasseur', id = 151},
    {label = 'Terre foncé', id = 152},
    {label = 'Désert', id = 153},
    {label = 'Amarylisse', id = 154},
    {label = 'Gris', id = 155},
    {label = 'Bleu glacier', id = 156},
    {label = 'Or pure', id = 157},
    {label = 'Or brossé', id = 158},
    {label = 'Or clair', id = 159}
}

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