Skip to content

1. Configuring EasyAdmin

Blue edited this page Apr 27, 2021 · 62 revisions

Configuration of EasyAdmin is done via convars, these can be set via your server config file or by typing it as a command inside your servers' console ( this method may not always work with EasyAdmin and the settings will reset after the server has been restarted. )

setr ea_LanguageName "en"                # set our language to english
setr ea_MenuButton "289"			# set our menu button to F2. default: "289"
setr ea_alwaysShowButtons "false"	# we don't want to see buttons we can't even access, do we? default: "false"
set ea_moderationNotification "false"   # this can be either "false" or a discord webhook address, this will send a discord message if an admin takes actions against a player  ( such as banning and kicking )
set ea_custombanlist "false"            # read docs for this, dont touch it
set ea_enableCallAdminCommand "true"
set ea_enableReportCommand "true"
Command/Convar Type Usage Description
ea_LanguageName Convar setr ea_LanguageName "en" This Convars dictates in which language EasyAdmin is displayed ( this includes but is not limited to GUI, Kick Messages, Reasons, Hud Elements.. ) Available options: en,de,fr,it,sv,pt
ea_MenuButton Convar FiveM: setr ea_MenuButton "289" RedM: setr ea_MenuButton "PhotoModePc" Key which is used to open the Menu, FiveM Keys, RedM Keys
ea_minIdentifierMatches Convar set ea_minIdentifierMatches 2 The Minimum Amount of Identifiers that have to match before a Player gets "Declined" for being banned. Never put this below 1.
ea_alwaysShowButtons Convar setr ea_alwaysShowButtons "false" Shows all buttons in the UI, even if the User doesn't have permissions to see them.
ea_moderationNotification Convar set ea_moderationNotification "https://discordapp/api/webhooks/123/456" Logs Actions via Discord Webhook
ea_enableDebugging Convar setr ea_enableDebugging "true" Enables Debugging, this will print Debug Infos in the Console such as Permissions.
ea_custombanlist Convar set ea_custombanlist "true" Enables custom Banlist systems, see https://github.com/Bluethefurry/EasyAdmin/wiki/Custom-Banlist-Plugins for further documentation
ea_screenshoturl Convar setr ea_screenshoturl "https://wew.wtf/upload.php" Defines an Image Uploader for the created Screenshots, make sure ea_screenshotfield is also configured correctly.
ea_screenshotfield Convar setr ea_screenshotfield "files[]" Defines the name for the form field to add the file to. See screenshot-basic for further information.
ea_screenshotOptions Convar setr ea_screenshotOptions "{}" Defines any arguments that should be passed through to screenshot-basic as a JSON String. See screenshot-basic for further information.
ea_enableCallAdminCommand Convar set ea_enableCallAdminCommand "true" Enables "calladmin" command, will print a message via webhook.
ea_enableReportCommand Convar set ea_enableReportCommand "true" Enables "report" command
ea_defaultMinReports Convar set ea_defaultMinReports 3 Minimum Reports to Ban someone below ea_MinReportPlayers Threshold, if ea_MinReportModifierEnabled, this is the amount always needed for a player to be banned.
ea_MinReportModifierEnabled Convar set ea_MinReportModifierEnabled "true" Allows "Variable" Minimum Report Count, Will Divide Current Player Count by ea_MinReportModifier.
ea_MinReportPlayers Convar set ea_MinReportPlayers 12 Minimum Amount of Players for the "Report Modifier" to enable, would not recommend setting below this number.
ea_MinReportModifier Convar set ea_MinReportModifier 4 Amount by which Player Count gets divided to get "minimum reports needed" count, so if 12 Players are on the server and this value is 4, 12/4= 3 Reports
ea_ReportBanTime Convar set ea_ReportBanTime 86400 Ban Time in unix time, how long the temporary ban should last after getting reported by x users
ea_chatReminderTime Convar set ea_chatReminderTime 0 Time ( in minutes ) of how often there should be a random Chat Reminder printed to Chat, disabled if 0.
ea_addReminder Command ea_addReminder "Online Admins: ^3@admins^7" Make sure to add this parameter BELOW the EasyAdmin start line, otherwise it won't work Adds a Reminder Text to the pool of available options, can support infinite reminders, see Docs Page
ea_excludeWebhookFeature Command ea_excludeWebhookFeature freeze teleport Allows Specific Webhook Alerts to be disabled, available options: kick ban slap teleport freeze spectate settings
ea_backupFrequency Convar set ea_enableCallAdminCommand "true" time (in hours) between Banlist Backups.
ea_maxBackupCount Convar set ea_maxBackupCount 10 the maximum amount of backups that can be created. Old backups will be deleted.
ea_maxWarnings Convar set ea_maxWarnings 3 Defines how many times a player can get warned before actions are taken Automatically.
ea_warnAction Convar set ea_warnAction "kick" Defines how the player will get acted upon, if maximum warnings are reached, can be kick or ban
ea_warningBanTime Convar set ea_warningBanTime 604800 How long a player will stay banned after being warned and banned, accepts a unix time string.
ea_useTokenIdentifiers Convar set ea_useTokenIdentifiers true Weither or not to use Tokens as Identifiers when banning users, keep activated unless multiple server instances access the same banlist file.
ea_playerCacheExpiryTime Convar set ea_playerCacheExpiryTime 900 Defines, in seconds, how long it takes for a Cached Player to get removed from Cache, 15 Minutes by Default, however, higher Values are recommended for sparsely Moderated Servers, should not exceed a few hours for performance reasons.
ea_enableTelemetry Convar set ea_enableTelemetry "true" Enable or Disable Telemetry
ea_callAdminCooldown Convar set ea_callAdminCooldown 60 In Seconds, how long a Player will not be able to use callAdmin after using it once.
Clone this wiki locally