Open Road MP

mp.bans

Bans by Open Road MP account, also with an end.

add

mp.bans.add(player: PlayerRef | string, options?: BanOptions): void

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

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

Whether the account is banned right now.

On this page