Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

Configuration

Nick Perry edited this page Dec 10, 2020 · 5 revisions

Configuration Guide

Sample Configuration

Config = {}
Config.Groups = {
{
-- Group Name
group = 'superadmin', 
-- Job to set when on duty
job = 'admin', 
-- Grade of job to set when on duty
grade = 0, 
 -- Car model name
car ='tahoeb',
-- Car Livery ID
vehlivery = 0, 
-- Enabled Car Extras
extras = {4,11}, 
-- Ped Hash
ped = -2039072303,
-- Ped Variation in table, {componentid, the textureID, the colorID}
pedvari = {
{component=8,texture=2,color=1},
{component=3,texture=2,color=1},
{component=9,texture=2,color=1},
{component=8,texture=1,color=1}
},
-- Ped Prop in table, {componentid, the textureID, the colorID}
pedprop = {
{component=0,texture=2,color=2,attach=true},
},
 -- God the player on admin mode
god= true,
-- heal the player on admin mode (includes hunger/thirst/drugs if ESXStatus is Enabled)
heal= true,
},
}
-- Enable if using ESX Status
Config.ESXStatus = true 
Config.banformat = "You have been banned from the server\nReason: %s\nExpires: %s\nBanned by: %s (Ban ID: #%s)" -- message shown when banned (1st %s = reason, 2nd %s = expire, 3rd %s = banner, 4th %s = ban id)
Config.popassistformat = "Player %s is requesting help\nWrite <span class='text-success'>/accassist %s</span> to accept or <span class='text-danger'>/decassist</span> to decline" -- popup assist message format
Config.chatassistformat = "Player %s is requesting help\nWrite ^2/accassist %s^7 to accept or ^1/decassist^7 to decline\n^4Reason^7: %s" -- chat assist message format
Config.enable_ban_json = false -- http://<server-ip>:<server-port>/el_bwh/bans.json
Config.enable_warning_json = false -- http://<server-ip>:<server-port>/el_bwh/warnings.json
Config.assist_keys = {accept=208,decline=207} -- keys for accepting/declining assist messages (default = page up, page down) - https://docs.fivem.net/game-references/controls/
-- Config.assist_keys = nil -- coment the line above and uncomment this one to disable assist keys
Config.warning_screentime = 7.5 * 1000 -- warning display length (in ms)
Config.backup_kick_method = false -- set this to true if banned players don't get kicked
Config.discord_webhook = nil -- set to nil to disable, otherwise put "<your webhook url here>" <-- with the quotes!
Config.page_element_limit = 250

Configuration Options

  • Group -- The name of the group in which you want to enable admin mode for
  • Job -- The name of the job that you want to set the user to when they enable admin mode
  • Grade -- The grade of the job that you want to set the user to when they enable admin mode
  • Car -- The name of the car model that you want to auto spawn when admin mode is enabled
  • Vehlivery -- The ID of the livery that you want the auto spawned car to have
  • Extras -- Ids of the extras you want enabled in table form
  • Ped -- HASH of ped you want to set for the user
  • Pedvari -- List of components you want to set on the ped (see Setting Components)
  • Pedprops -- List of props you want to set on the ped (see Setting Props)
  • God -- If enabled, sets the user into god mode when enabling admin mode
  • Heal -- Heals the player when going into god mode
  • Config.ESXStatus - When healing, this also sets the players hunger and thirst to full, and removes any drug or alcohol effects.
  • Config.banformat - This format will be shown to players when they are banned.
  • Config.popassistformat - This will be used for the popup that is created when a player uses /assist
  • Config.enable_ban_json - Enables a dynamic JSON (that can be integrated) at http://:/esx_adminmode/bans.json
  • Config.enable_warning_json Enables a dynamic JSON (that can be integrated) at http://:/esx_adminmode/warns.json
  • Config.assist_keys - Hotkeys for accepting/declining assist requests
  • Config.warning_screentime - How long the warn screen should appear (in MS)
  • Config.backup_kick_method - Only use this if players aren't being kicked properly.
  • Config.discord_webhook - URL of discord webhook to log to
  • Config.page_element_limit - How many elements should be on each page

Add More tables to the configuration for more groups.

Clone this wiki locally