Historique des versions
Chaque mise à jour livrée pour ce script — synchronisée depuis notre changelog Discord dans ta langue.
v1.2.1Dernière
20 mai 2026🛡️ Agency-Admin — Permission system, ban overhaul, direct commands & inventory fix.
---
🛡️ Agency-Admin
🐛 Bug Fix — Tab Access Without Permission
• Ranks without `tab_server` or `tab_vehicles` could still open those tabs and perform actions such as writing announcements or viewing the server config
• The implied-actions fallback in `getVisibleTabs()` was bypassing explicit `false` denials
• Tabs now respect explicit permission denials regardless of implied action permissions
🐛 Bug Fix — Commands Not Working
• Admins with permissions for clothing, teleport, and similar actions could only use them via the panel — the matching commands were not registered
• Commands now perform the same permission check as the panel buttons — if a rank can use the button it can use the command
🐛 Bug Fix — Open Inventory Not Working (ESX)
• The inventory action always called `esx_inventoryhud:openPlayerInventory` which is not present on modern ESX servers
• Detection order is now: `ox_inventory` first (framework-independent), then `qs-inventory`, then `esx_inventoryhud` as a last fallback
🐛 Bug Fix — Ban Modal Not Clickable
• The ban modal rendered correctly but buttons and input fields could not be interacted with
• Missing `pointer-events: all` on the overlay and modal elements caused all click and keyboard events to pass through to the game
🐛 Bug Fix — Ban Expiry Not Persisted
• The `expires` field was never written to `banned_players.json` during `saveBanState`
• After a server restart all timed bans were loaded without an expiry and could not auto-expire on `playerConnecting`
• Both `saveBanState` and `loadBanState` now correctly save and restore the `expires` field
🐛 Bug Fix — Revive Not Working
• The revive action only performed a client-side native resurrection
• On QBCore and ESX the death state is tracked server-side — the native alone does not clear `isdead` / `inlaststand` metadata, so the player was immediately put back into the death state
• Server now clears the framework death state before triggering the client resurrection
---
✨ New — Ban Reason & Duration
• Clicking Ban now opens a modal instead of immediately banning the player
• Reason field — free text up to 200 characters, required before the ban can be submitted
• Duration dropdown — Permanent / 1h / 6h / 24h / 48h / 7d / 30d
• Kick message shows the ban reason and expiry date for timed bans
• Banned players list now shows the expiry date in the panel
✨ New — Direct Admin Commands
• All commands check the same rank permissions as the panel buttons — if a rank does not have the permission the command is blocked
| Command | Permission | Description |
|---|---|---|
| `/agoto [id]` | `goto_player` | Teleport to a player |
| `/abring [id]` | `bring_player` | Bring a player to you |
| `/arevive [id]` | `revive_player` | Revive a player |
| `/aheal [id]` | `heal_player` | Heal a player |
| `/aslay [id]` | `slay_player` | Kill a player |
| `/akill [id]` | `slay_player` | Kill a player (alias) |
| `/aclothing [id]` | `open_clothing_menu` | Open clothing menu for a player |
| `/akick [id] [reason]` | `kick_player` | Kick a player |
| `/aban [id] [reason]` | `ban_player` | Permanent ban with reason |
| `/aban [id] 1h/6h/24h/7d/30d [reason]` | `ban_player` | Timed ban with reason |
| `/anoclip` | `tool_noclip` | Toggle noclip for yourself |
| `/atpm` | `goto_player` | Teleport to your map waypoint |
✨ New — Spawn by name for Vehicles
---
Installation
• Overwrite your existing Agency-Admin folder with this version — no database changes required.
• If you are on ESX and use `ox_inventory` or `qs-inventory` the Open Inventory button will now work automatically without any config change.