mp.bans
Bans by Open Road MP account, also with an end.
add
mp.bans.add(player: PlayerRef | string, options?: BanOptions): voidBans a player by Open Road MP account (an online player or an account ID) - also under another name or IP. Online players with that account leave the server at once.
Types: BanOptions
remove
mp.bans.remove(accountId: string): voidLifts the ban of an account.
list
mp.bans.list(): readonly Ban[]Every account ban of the server (also those from the console).
Types: Ban
isBanned
mp.bans.isBanned(accountId: string): booleanWhether the account is banned right now.