Founder guide · 5 minutes

Install Lastban

Works with ESX, QBCore, Qbox and standalone servers: Lastban only uses FiveM's built-in functions. No database to set up on your side.

STEP 1

Get your API key

After signing up you receive a key starting with lb_. It identifies your server and your subscription.

Keep it secret. Never share it, never paste it in a public file or a GitHub repository. If it leaks, ask us for a new one: the old key stops working immediately.
STEP 2

Add the lastban resource

Unzip the archive and drop the folder into your server's resources directory.

resources/
resources/
└── lastban/
    ├── fxmanifest.lua
    ├── config.lua
    └── server.lua
STEP 3

Add three lines to your server.cfg

Put them before your other ensure lines, so Lastban checks players before the rest of your server loads them.

server.cfg
## 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.

STEP 4

Restart and check the console

Restart your server, or type refresh then ensure lastban in the txAdmin console. You should see:

txAdmin · live console
[lastban] connected to Lastban (https://lastban.com)
That's it. Join your own server: you'll get the PC check once, like your players.

If a red line appears instead, it tells you what's wrong: key refused, subscription expired or Lastban unreachable.

STEP 5

Staff commands

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):

lua
exports.lastban:Ban(source, '30d', 'Cheating', 'StaffName')
STEP 6

Pick your settings

SettingDefaultWhat it does
ModeStandardStandard: one check, then only when the PC seems to have changed. Strict: a check on every join.
One PC = one accountOnA PC already linked to an account can't validate a second account on your server.
lastban_langenLanguage of what your players and staff see: en (English) or fr (French). The player tool always follows the player's Windows language.
lastban_fail_opentrueIf Lastban is unreachable, players get in anyway. Set to false to refuse everyone during an outage.
STEP 7

What to tell your players

Requirements

  • Windows 10 or 11
  • TPM 2.0 enabled: true on almost every recent PC, Windows 11 requires it
  • Same internet connection as FiveM during the check

If their TPM is off

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.