Get your API key
After signing up you receive a key starting with lb_. It identifies your server and your subscription.
Works with ESX, QBCore, Qbox and standalone servers: Lastban only uses FiveM's built-in functions. No database to set up on your side.
After signing up you receive a key starting with lb_. It identifies your server and your subscription.
lastban resourceUnzip the archive and drop the folder into your server's resources directory.
resources/
└── lastban/
├── fxmanifest.lua
├── config.lua
└── server.luaserver.cfgPut them before your other ensure lines, so Lastban checks players before the rest of your server loads them.
## Lastban set lastban_url "https://lastban.com" set lastban_key "lb_your_key_here" set lastban_lang "en" ensure lastban
Replace lb_your_key_here with your key.
Restart your server, or type refresh then ensure lastban in the txAdmin console. You should see:
[lastban] connected to Lastban (https://lastban.com)If a red line appears instead, it tells you what's wrong: key refused, subscription expired or Lastban unreachable.
Restricted to your admins (any group allowed to use commands, such as group.admin). They work in game and in the console.
/lastban 12 30d CheatingBans player ID 12 and their PC for 30 days. Durations: 12h, 30d or permanent.
/lastunban license:…Lifts every ban on this account and its PC.
/lastunlink license:…Detaches an account from its PC (sold PC, dispute).
From your own scripts (admin menu, anti-cheat):
exports.lastban:Ban(source, '30d', 'Cheating', 'StaffName')
| Setting | Default | What it does |
|---|---|---|
| Mode | Standard | Standard: one check, then only when the PC seems to have changed. Strict: a check on every join. |
| One PC = one account | On | A PC already linked to an account can't validate a second account on your server. |
lastban_lang | en | Language of what your players and staff see: en (English) or fr (French). The player tool always follows the player's Windows language. |
lastban_fail_open | true | If Lastban is unreachable, players get in anyway. Set to false to refuse everyone during an outage. |
The tool explains it. They enable it in the BIOS, under Intel PTT (Intel CPU) or AMD fTPM (AMD CPU), usually in the Security or Advanced tab.