Main Menu¶
This page documents hooks in the main menu category.
CanPlayerCreateChar(client, data)View Source
Purpose
Determines whether a player is allowed to create a character with the supplied creation data.
Category
Main Menu
Realm
Shared
Parameters
Player client The player attempting to create a character.
table data The submitted character creation data.
Returns
boolean|nil Return false to block character creation.
ChooseCharacter(id)View Source
CreateCharacter(data)View Source
DeleteCharacter(id)View Source
Purpose
Requests deletion of a character by ID.
Category
Main Menu
Realm
Client
Parameters
number id The character ID to delete.
GetMainCharacterID()View Source
Purpose
Allows code to override which character ID should be treated as the player's main character.
Category
Main Menu
Realm
Client
Returns
number|nil Return the character ID that should be loaded as the main character.
GetMaxPlayerChar(client)View Source
KickedFromChar(characterID, isCurrentChar)View Source
LiliaLoaded()View Source
LoadMainCharacter()View Source
Purpose
Loads the player's configured main character through the normal character-selection flow.
Category
Main Menu
Realm
Client
Returns
Deferred|nil Returns the character-load deferred when a main character is available.
ResetCharacterPanel()View Source
SetMainCharacter(charID)View Source
Purpose
Sends the selected character ID to the server as the player's main character.
Category
Main Menu
Realm
Client
Parameters
number charID The character ID to store as the player's main character.
SyncCharList(client)View Source
Purpose
Sends the current character list to a client that is viewing character selection.
Category
Main Menu
Realm
Server
Parameters
Player client The player who should receive the synchronized character list.
ThirdPersonToggled(enabled)View Source
Purpose
Called whenever the third-person option is toggled through the main menu or option system.
Category
Main Menu
Realm
Client
Parameters
boolean enabled The new third-person enabled state.