Update Guide¶
This guide provides instructions for updating EasyAdmin between versions.
Updating to 7.52¶
Plugin API: client-local DoesPlayerHavePermission removed¶
- The redundant client-only
DoesPlayerHavePermissionthat lived inclient/admin_client.luahas been removed. The function is still provided by the shared script (shared/util_shared.lua), so it remains available on both the client and the server (and as an export) — most plugins are unaffected. - If your plugin relied on the old client-local global, switch to the shared
DoesPlayerHavePermission; its behaviour matches the server-side permission check.
Updating to 7.5¶
EasyAdmin 7.5 removes the Permission Editor due to a new security feature by FiveM.
To update you must delete the following folders before updating EasyAdmin:
1 2 | |
This ensures that the Discord Commands are properly updated.
Updating to 7.4¶
EasyAdmin 7.4 brings major structural changes to the resource and introduces a completely rewritten Discord Bot system. Dependencies are no longer installed via yarn; they are now included directly with the EasyAdmin package.
Before Updating¶
Make sure to delete the following files and folders from your EasyAdmin installation:
1 2 | |
Requirements¶
- FiveM Server Version: 12913 or higher
- Onesync: Required
Updating to 7.3¶
- The v1 Plugin API has been completely removed. If your plugins were using the v1 API, you must update them. See the Porting Docs for help.
- EasyAdmin no longer automatically assigns permissions via the
server.cfg. You must now manually add this line to yourserver.cfg:
1 | |
Updating to 6.8 & 6.81¶
ea_logIdentifiernow accepts a list of identifiers, separated by commas.
Example:
1 2 | |
- EasyAdmin Plugins have undergone significant changes. If you're a developer, refer to the Porting Docs to update your plugins.
Updating to 6.6¶
- This version requires a recent version of
yarnfrom cfx-server-data. Make sure you're using the latest version.
Updating to 6.5¶
ea_defaultKey Removal¶
ea_defaultKeyhas been removed due to confusion over its purpose. It is now empty by default and must be set manually via FiveM Settings.- RedM is not affected by this change.
Updating to 6.3¶
ea_MenuButton → ea_defaultKey¶
ea_MenuButtonhas been renamed toea_defaultKey. The syntax remains the same.
1 2 | |
Ban Permission Change¶
- The
player.banpermission has been updated to include.view,.edit, and.remove.
1 2 | |
Note: Granting
easyadmin.bannow also grants the ability to edit and unban players.
Reports 'claim' Permission¶
- Reports can now be claimed using the
.claimpermission.
1 | |
Updating to 6.2¶
Major Permission Changes¶
- Permissions have been restructured into categories (e.g.,
player,server) and new permissions have been added. - The
manageserverpermission is no longer available. teleport.playerhas been renamed toplayer.teleport.single.
Example of Permission Change¶
1 2 | |
Permission List (All prefixed with easyadmin.)¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
FiveM Keybinds¶
ea_MenuButtonnow requires a string representation of a key, as per FiveM docs.
Example:
1 2 | |
⚠️ This change is one-time only. Once a player joins with the keybind set, they must change it manually in their FiveM settings. This does not apply to RedM.