Skip to content

Protection

This page documents hooks in the protection category.


CanDeleteChar(client, character)View Source

Purpose

Determines whether a character can be deleted from the character menu.

Category

Protection

Realm

Client

Parameters

Player client The local player attempting to delete the character.

table|Character character The target character data being evaluated for deletion.

Returns

boolean|nil Return false to block deletion.


CanPlayerSwitchChar(client, character, newCharacter)View Source

Purpose

Determines whether a player may switch away from their current character to another one.

Category

Protection

Realm

Shared

Parameters

Player client The player attempting the character switch.

Character character The player's current character.

Character newCharacter The character the player wants to switch to.

Returns

boolean, string|nil Return false and an optional denial message to block the switch.


OnCheaterCaught(client)View Source

Purpose

Called after the anti-cheat timeout flow identifies a player as cheating.

Category

Protection

Realm

Server

Parameters

Player client The player flagged by the anti-cheat flow.


PlayerCheatDetected(client)View Source

Purpose

Called when the anti-cheat system detects or flags suspicious cheating behavior for a player.

Category

Protection

Realm

Server

Parameters

Player client The player detected by the anti-cheat system.


VerifyCheats()View Source

Purpose

Runs the clientside anti-cheat verification checks and reports suspicious results back to the server.

Category

Protection

Realm

Client