Configuration
Contenu de config.lua
--[[
Bievenue sur la version 2.0 de aStaffMode, le config.lua est totalement configurable.
]]--
_Config = {
framework = "newESX", -- newESX or ESX
getESX = "esx:getSharedObject", -- Get ESX // si vous utiliser newESX celui-ci ne fonctionnera pas donc laisser le comme il est
OpenMenu = "f1",
NoClip = "f3",
imageLogServer = "https://i.goopics.net/yl14w8.gif", -- Image du log serveur (Site web pour héberger vos image pour les mettre ici -->> https://www.zupimages.net/)
char_ = "CHAR_SOCIAL_CLUB", -- Char_ for notification Client_side & Server_side (https://wiki.gtanet.work/index.php?title=Notification_Pictures)
activeJobs2 = true, -- Activer ou désactivé le Double Jobs sur votre serveur (Jobs2)
-- == Log server == --
enableErrorsLog = true,
enablePrintLog = true, -- Affiche les prints dans le serveur
Notification = 'NewESX', -- Les options peuvent être 'NewESX', 'okokNotify', ou 'ESX'
-- == Config Menu == --
actifBannierre = true, -- Activer la bannière (true = oui | false = non)
actifTitreMenu = true, -- Activer le titre du menu (true = oui | false = non)
textureName = 'root_cause', -- TextureName
fichierYTD = 'ahero_red', -- fichierYTD
taille_menu = 100.0, -- Taille du menus 0 - 100 maximums
position_menus = {verticale = 0, horizontale = 100}, -- position des menus
-- Si vous avez pas activé de bannière vous pouvez choisir une couleur pour vos menu
color_menu = {r = 20, g = 0, b = 0}, -- changé la couleur ? go https://htmlcolorcodes.com/fr/
MaxWarns = 3, -- Vous pouvez changer le nombre de warn maximums, par défaut c'est 3 donc il prend un perma à 3 warn
-- == Event revive == --
eventRevive = "esx_ambulancejob:revive",
eventHeal = "esx_basicneeds:healPlayer",
actifAnimationNoClip = true, -- Active l'animation de NoClip saut éclair
webhooks = {
--== première connexion ==--
["info_connexion"] = { w = "" },
--== connexion perma et temporary... ==--
["connexion_ban_permanent"] = { w = "" },
["connexion_ban_temporaire"] = { w = "" },
--== log setgroup ==--
["menu_setgroup_user"] = { w = "" },
["menu_setgroup_mod"] = { w = "" },
["menu_setgroup_admin"] = { w = "" },
["menu_setgroup_superadmin"] = { w = "" },
--== add money ==--
["menu_add_money"] = { w = "" },
["menu_add_bank"] = { w = "" },
["menu_add_sale"] = { w = "" },
--== remove money ==--
["menu_remove_money"] = { w = "" },
["menu_remove_bank"] = { w = "" },
["menu_remove_sale"] = { w = "" },
--== give item menu ==--
["menu_give_item_menu"] = { w = "" },
["menu_give_weapon_menu"] = { w = "" },
--== Staff envoie message ==--
["menu_staff_envoie_message"] = { w = "" },
--== Action sur Joueur ==--
["menu_revive_player"] = { w = "" },
["menu_heal_player"] = { w = "" },
--== SetJob et Job2 ==--
["menu_setjob"] = { w = "" },
["menu_setjob2"] = { w = "" },
--== Give Weapon ==--
["menu_add_munitions"] = { w = "" },
["menu_clear_munitions"] = { w = "" },
["menu_clear_weapon"] = { w = "" },
--== menu tp ==--
["menu_teleport_sur_lui"] = { w = "" },
["menu_teleport_sur_soi"] = { w = "" },
--== Commands all ==--
["command_teleport_sur_lui"] = { w = "" },
["command_teleport_sur_soi"] = { w = "" },
["command_revive"] = { w = "" },
["command_revive_all"] = { w = "" },
["command_suppression_vehicule"] = { w = "" },
["command_spawn_vehicule"] = { w = "" },
["command_check_coord"] = { w = "" },
["command_ban"] = { w = "" },
["command_unban"] = { w = "" },
--== Warns ==--
["menu_remane_warns"] = { w = "" },
["ban_3eme_warns"] = { w = "" },
["add_warns"] = { w = "" },
["menu_warns_delete"] = { w = "" },
--== Bans ==--
["menu_ban_temporaire"] = { w = "" },
["menu_ban_history_rename"] = { w = "" },
["menu_ban_history_suppression"] = { w = "" },
["AC_ban_permanent"] = { w = "" },
["Add_Ban_SQL"] = { w = "" },
["Add_Ban_SQL_permant"] = { w = "" },
["menu_unban"] = { w = "" },
--== gestion reports ==--
["envoie_report"] = { w = "" },
["ferme_report"] = { w = "" },
--== Jails ==--
["go_jail_gestion_player"] = { w = "" },
["un_jail_gestion_player"] = { w = "" },
["go_jail_commands"] = { w = "" },
["un_jail_commands"] = { w = "" },
["reconnexion_player_en_prison"] = { w = "" },
["deconnexion_player_en_prison"] = { w = "" },
--== TP COORDS x y z ==--
["command_tpcoords"] = { w = "" },
--== Système Rank Staff ==--
["create_rankStaff"] = { w = "" },
["remove_rankStaff"] = { w = "" },
["modifie_rankStaff"] = { w = "" },
["modifie_color_rankStaff"] = { w = "" },
--== Système Rank Staff ==--
["supp_veh_garage_menu"] = { w = "" },
},
}
ListeVehcule = {
{model = "panto", label = "Panto du seigneur"},
{model = "t20", label = "La T20 de l'enfer"},
}
-- == permissions == -- si ta pas mis ta license, tu prend perma directe
StaffCheck = {
CheckPermission = true,
["license:52a0de32a6c0048d933efebb90ccd5995576507h"] = true, -- Ahero
}
VIPWeapons = { -- mettre les arme que vous voulez perma, pour pas que les staff les prend (ecrire un minuscule!!!!)
['weapon_railgun'] = true,
['weapon_rpg'] = true,
}
WeaponList = { -- NE PAS TOUCHER // a par si vous voulez rajouter des armes
{Label = "↓↓ ~o~Mélée~s~ ↓↓"},
{Label = "Couteau", Value = "WEAPON_KNIFE", ammo = 0, components = {}, tintIndex = 0},
{Label = "Matraque", Value = "WEAPON_NIGHTSTICK", ammo = 0, components = {}, tintIndex = 0},
{Label = "Marteau", Value = "WEAPON_HAMMER", ammo = 0, components = {}, tintIndex = 0},
{Label = "Batte", Value = "WEAPON_BAT", ammo = 0, components = {}, tintIndex = 0},
{Label = "Club de golf", Value = "WEAPON_GOLFCLUB", ammo = 0, components = {}, tintIndex = 0},
{Label = "Pied de biche", Value = "WEAPON_CROWBAR", ammo = 0, components = {}, tintIndex = 0},
{Label = "Queue de billard", Value = "WEAPON_POOLCUE", ammo = 0, components = {}, tintIndex = 0},
{Label = "Hache de combat", Value = "WEAPON_BATTLEAXE", ammo = 0, components = {}, tintIndex = 0},
{Label = "Couteau a cran d'arret", Value = "WEAPON_SWITCHBLADE", ammo = 0, components = {}, tintIndex = 0},
{Label = "Hachette", Value = "WEAPON_HATCHET", ammo = 0, components = {}, tintIndex = 0},
{Label = "Poing américain", Value = "WEAPON_KNUCKLE", ammo = 0, components = {}, tintIndex = 0},
{Label = "Dague", Value = "WEAPON_DAGGER", ammo = 0, components = {}, tintIndex = 0},
{Label = "Bouteille", Value = "WEAPON_BOTTLE", ammo = 0, components = {}, tintIndex = 0},
{Label = "Clé", Value = "WEAPON_WRENCH", ammo = 0, components = {}, tintIndex = 0},
{Label = "Lampe torche", Value = "WEAPON_FLASHLIGHT", ammo = 0, components = {}, tintIndex = 0},
{Label = "↓↓ ~o~Armes de poing~s~ ↓↓"},
{Label = "Tazer", Value = "WEAPON_STUNGUN", ammo = 0, components = {}, tintIndex = 0},
{Label = "Pistolet", Value = "WEAPON_PISTOL", ammo = 250, components = {}, tintIndex = 0},
{Label = "Pistolet de combat", Value = "WEAPON_COMBATPISTOL", ammo = 250, components = {}, tintIndex = 0},
{Label = "Pistolet automatique", Value = "WEAPON_APPISTOL", ammo = 250, components = {}, tintIndex = 0},
{Label = "Pistolet calibre 50", Value = "WEAPON_PISTOL50", ammo = 250, components = {}, tintIndex = 0},
{Label = "Pistolet sns", Value = "WEAPON_SNSPISTOL", ammo = 250, components = {}, tintIndex = 0},
{Label = "Pistolet lourd", Value = "WEAPON_HEAVYPISTOL", ammo = 250, components = {}, tintIndex = 0},
{Label = "Pistolet vintage", Value = "WEAPON_VINTAGEPISTOL", ammo = 250, components = {}, tintIndex = 0},
{Label = "Pistolet marksman", Value = "WEAPON_MARKSMANPISTOL", ammo = 250, components = {}, tintIndex = 0},
{Label = "Revolver", Value = "WEAPON_REVOLVER", ammo = 250, components = {}, tintIndex = 0},
{Label = "Revolver double action", Value = "WEAPON_DOUBLEACTION", ammo = 250, components = {}, tintIndex = 0},
{Label = "↓↓ ~o~Mitrailletes~s~ ↓↓"},
{Label = "Micro smg", Value = "WEAPON_MICROSMG", ammo = 250, components = {}, tintIndex = 0},
{Label = "Mini smg", Value = "WEAPON_MINISMG", ammo = 250, components = {}, tintIndex = 0},
{Label = "Pistolet mitrailleur", Value = "WEAPON_MACHINEPISTOL", ammo = 250, components = {}, tintIndex = 0},
{Label = "Smg", Value = "WEAPON_SMG", ammo = 250, components = {}, tintIndex = 0},
{Label = "Combat PDW", Value = "WEAPON_COMBATPDW", ammo = 250, components = {}, tintIndex = 0},
{Label = "Smg d'assaut", Value = "WEAPON_ASSAULTSMG", ammo = 250, components = {}, tintIndex = 0},
{Label = "↓↓ ~o~Fusil dà pompe~s~ ↓↓"},
{Label = "Pump Shotgun", Value = "WEAPON_PUMPSHOTGUN", ammo = 250, components = {}, tintIndex = 0},
{Label = "Sawed-Off Shotgun", Value = "WEAPON_SAWNOFFSHOTGUN", ammo = 250, components = {}, tintIndex = 0},
{Label = "Assault Shotgun", Value = "WEAPON_ASSAULTSHOTGUN", ammo = 250, components = {}, tintIndex = 0}, --
{Label = "Bullpup Shotgun", Value = "WEAPON_BULLPUPSHOTGUN", ammo = 250, components = {}, tintIndex = 0},
{Label = "Musket", Value = "WEAPON_MUSKET", ammo = 250, components = {}, tintIndex = 0},
{Label = "Heavy Shotgun", Value = "WEAPON_HEAVYSHOTGUN", ammo = 250, components = {}, tintIndex = 0},
{Label = "Double Barrel Shotgun", Value = "WEAPON_DBSHOTGUN", ammo = 250, components = {}, tintIndex = 0},
{Label = "Sweeper Shotgun", Value = "WEAPON_AUTOSHOTGUN", ammo = 250, components = {}, tintIndex = 0},
{Label = "Combat Shotgun", Value = "WEAPON_COMBATSHOTGUN", ammo = 250, components = {}, tintIndex = 0},
{Label = "↓↓ ~o~Fusil d'assaut~s~ ↓↓"},
{Label = "Fusil d'assault", Value = "WEAPON_ASSAULTRIFLE", ammo = 250, components = {}, tintIndex = 0},
{Label = "Carabine d'assault", Value = "WEAPON_CARBINERIFLE", ammo = 250, components = {}, tintIndex = 0},
{Label = "Fusil avancé", Value = "WEAPON_ADVANCEDRIFLE", ammo = 250, components = {}, tintIndex = 0},
{Label = "Carabine spéciale", Value = "WEAPON_SPECIALCARBINE", ammo = 250, components = {}, tintIndex = 0},
{Label = "Fusil bullpup", Value = "WEAPON_BULLPUPRIFLE", ammo = 250, components = {}, tintIndex = 0},
{Label = "Fusil compact", Value = "WEAPON_COMPACTRIFLE", ammo = 250, components = {}, tintIndex = 0},
{Label = "↓↓ ~o~Mitrailleuse~s~ ↓↓"},
{Label = "MG", Value = "WEAPON_MG", ammo = 250, components = {}, tintIndex = 0},
{Label = "Combat MG", Value = "WEAPON_COMBATMG", ammo = 250, components = {}, tintIndex = 0},
{Label = "Gusenberg Sweeper", Value = "WEAPON_GUSENBERG", ammo = 250, components = {}, tintIndex = 0},
{Label = "↓↓ ~o~Sniper~s~ ↓↓"},
{Label = "Sniper Rifle", Value = "WEAPON_SNIPERRIFLE", ammo = 250, components = {}, tintIndex = 0},
{Label = "Heavy Sniper", Value = "WEAPON_HEAVYSNIPER", ammo = 250, components = {}, tintIndex = 0},
{Label = "Marksman Rifle", Value = "WEAPON_MARKSMANRIFLE", ammo = 250, components = {}, tintIndex = 0},
{Label = "↓↓ ~o~Heavy~s~ ↓↓"},
{Label = "Rail Gun", Value = "WEAPON_RAILGUN", ammo = 20, components = {}, tintIndex = 0},
{Label = "Rpg", Value = "WEAPON_RPG", ammo = 20, components = {}, tintIndex = 0},
{Label = "Minigun", Value = "WEAPON_MINIGUN", ammo = 250, components = {}, tintIndex = 0},
{Label = "Lance-Tête chercheuse", Value = "WEAPON_HOMINGLAUNCHER", ammo = 20, components = {}, tintIndex = 0},
{Label = "Grenade Launcher", Value = "WEAPON_GRENADELAUNCHER", ammo = 20, components = {}, tintIndex = 0},
{Label = "Lance-feu-artifice", Value = "WEAPON_FIREWORK", ammo = 20, components = {}, tintIndex = 0},
{Label = "Compact Grenade Launcher", Value = "WEAPON_COMPACTLAUNCHER", ammo = 20, components = {}, tintIndex = 0},
{Label = "↓↓ ~o~Lançable~s~ ↓↓"},
{Label = "Grenade", Value = "WEAPON_GRENADE", ammo = 25, components = {}, tintIndex = 0},
{Label = "BZ Gas", Value = "WEAPON_BZGAS", ammo = 25, components = {}, tintIndex = 0},
{Label = "Molotov Cocktail", Value = "WEAPON_MOLOTOV", ammo = 25, components = {}, tintIndex = 0},
{Label = "Sticky Bomb", Value = "WEAPON_STICKYBOMB", ammo = 25, components = {}, tintIndex = 0},
{Label = "Proximity Mines", Value = "WEAPON_PROXMINE", ammo = 5, components = {}, tintIndex = 0},
{Label = "Snowballs", Value = "WEAPON_SNOWBALL", ammo = 10, components = {}, tintIndex = 0},
{Label = "Pipe Bombs", Value = "WEAPON_PIPEBOMB", ammo = 10, components = {}, tintIndex = 0},
{Label = "Balle", Value = "WEAPON_BALL", ammo = 0, components = {}, tintIndex = 0},
{Label = "Tear Gas", Value = "WEAPON_SMOKEGRENADE", ammo = 25, components = {}, tintIndex = 0},
{Label = "Flare", Value = "WEAPON_FLARE", ammo = 25, components = {}, tintIndex = 0},
--
{Label = "↓↓ ~o~Ahero~s~ ↓↓"},
{Label = "Micro smg", Value = "WEAPON_MICROSMG", ammo = 250, components = {"clip_extended", "flashlight", "scope", "suppressor"}, tintIndex = 3},
{Label = "Pistol", Value = "WEAPON_PISTOL", ammo = 250, components = {"clip_extended", "flashlight", "scope", "suppressor"}, tintIndex = 3},
}
--[[
Vous pouvez changer les noms des commandes ici
]]--
Commands = {
console = {
HelpConsole = "helpconsole", -- Savoir toute les commandes de la console -- [ENTRE]
SeGroupPlayer = "setgroup", -- /setgroup [id] [group]
GiveMoneyPlayer = "givemoney", -- /givemoney [id] [montant]
GiveBankPlayer = "givebank", -- /givebank [id] [montant]
GiveDirtyPlayer = "givedirty", -- /givedirty [id] [montant]
SaveAllPlayers = "saveall", -- /saveall
SavePlayer = "save", -- /save [id]
KickAllPlayerReboot = "reboot", -- /reboot [ENTRE] // kick tout les joueurs pour reboot
GiveItemPlayer = "giveitem", -- /giveitem [id] [item] [quantité]
GiveWeaponPlayer = "giveweapon", -- /giveweapon [id] [arme] [quantité]
GiveWeaponComponentPlayer = "giveweaponcomponent", -- /giveweaponcomponent [id] [arme] [component]
HealPlayer = "heal", -- /heal [id]
ClearInventairePlayer = "clearinventory", -- /clearinventory [id]
ClearWeaponPlayer = "clearweapon", -- /clearweapon [id]
},
server = {
HelpServer = "helpserver", -- Savoir toute les commandes du serveur -- [ENTRE]
GotoPlayer = "goto", -- /goto [id]
BringPlayer = "bring", -- /goto [id]
RevivePlayer = "revive", -- /revive [id]
ReviveAllPlayer = "reviveall", -- /reviveall [id]
CarDV = "cardv", -- /dv [radius]
SpawnCar = "car", -- /car [model]
PlayerPosition = "pos", -- /pos [ENTRE]
GoJailPlayer = "jail", -- /jail [id]
UnJailPlayer = "unjail", -- /unjail [id]
BanPlayer = "ban", -- /ban [id] [expiration (1 = 1h)] [raison]
UnBanPlayer = "unban", -- /unban [NomSteam]
tpcoords = "tpcoords", -- /tpcoords [x] [y] [z]
}
}
-- == Jail == --
Jail = {
InPrison = 0, -- Ne pas toucher /!\
tableInfoPlayersJail = {}, -- Ne pas toucher /!\
TimerTenue = 5000, -- 5 secondes = 5000 // Quand le joueur Spawn sur votre serveur et fait la vérif pour voir si il va en prison ou non, sur différent serveur le temps de spawm est long donc vous metté le temps que vous avez besoin en vrais le max pourrais être 15s pas plus
EntrePrison = vector4(1637.44, 2522.20, 45.55, 323.1),
SortiePrison = vector4(1851.44, 2586.1, 45.65, 272.1),
SafeZonePrison = {
{pos = vector3(1642.6, 2527.1, 45.5),dst = 13.0,}, -- vous pouvez utiliser les safe zone pour votre server sert à rien d'avoir une ressource pour ça
},
NotifAllPlayerGoJail = false, -- true = Oui | false = Non // Si vous mettez true, tous les joueurs connectés sur le serveur recevront une notification quand un joueur va en prison
NotifAllPlayerUnJail = false, -- true = Oui | false = Non // Si vous mettez true, tous les joueurs connectés sur le serveur recevront une notification quand un joueur sort de prison
tenue_prison = {
male = {
['tshirt_1'] = 15, ['tshirt_2'] = 0,
['torso_1'] = 146, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 0, ['pants_1'] = 3,
['pants_2'] = 7, ['shoes_1'] = 12,
['shoes_2'] = 12, ['chain_1'] = 50,
['chain_2'] = 0
},
female = {
['tshirt_1'] = 3, ['tshirt_2'] = 0,
['torso_1'] = 38, ['torso_2'] = 3,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 2, ['pants_1'] = 3,
['pants_2'] = 15, ['shoes_1'] = 66,
['shoes_2'] = 5, ['chain_1'] = 0,
['chain_2'] = 2
}
},
}
--[[
Je tien à vous remercier, vous m'aider beaucoup, merci pour votre force <3
]]--
Dernière mise à jour