Player class for FrameworkZ.
More...
Player class for FrameworkZ.
Definition at line 112 of file Players.lua.
◆ Destroy()
Destroys the player object.
- Returns
- mixed of boolean Whether or not the player was successfully destroyed and string The message on success or failure.
◆ GenerateUID()
◆ GetCharacter()
◆ GetCharacterDataByID()
void GetCharacterDataByID |
( |
characterID | | ) |
|
◆ GetCharacters()
◆ GetCustomData()
◆ GetIsoPlayer()
◆ GetMaxCharacters()
void GetMaxCharacters |
( |
| ) |
|
◆ GetPreviousCharacter()
void GetPreviousCharacter |
( |
| ) |
|
◆ GetRole()
◆ GetSaveableData()
◆ GetStoredData()
Gets the stored player mod data table. Used internally. Do not use this unless you know what you are doing. Updating data on the mod data will cause inconsistencies between the mod data and the FrameworkZ player object.
- Returns
- table The stored player mod data table.
◆ GetUsername()
◆ GetWhitelists()
◆ Initialize()
Initializes the player object.
- Returns
- string The username of the player.
◆ InitializeDefaultFactionWhitelists()
void InitializeDefaultFactionWhitelists |
( |
| ) |
|
◆ IsWhitelisted()
void IsWhitelisted |
( |
factionID | | ) |
|
◆ LoadCharacter()
void LoadCharacter |
( |
characterID | | ) |
|
◆ PlayLocalSound()
integer PlayLocalSound |
( |
soundName | | ) |
|
Plays a sound for the player that only they can hear.
- Parameters
-
soundName | string The name of the sound to play. |
- Returns
- integer The sound's ID.
◆ RestoreData()
◆ Save()
boolean Save |
( |
shouldTransmit | | ) |
|
Saves the player's data.
- Parameters
-
shouldTransmit | boolean (Optional) Whether or not to transmit the player's data to the server. |
- Returns
- boolean Whether or not the player was successfully saved.
- Todo
- Test if localized variable (playerData) maintains referential integrity for transmitModData() to work on it.
◆ SetCharacter()
void SetCharacter |
( |
character | | ) |
|
◆ SetCharacters()
◆ SetCustomData()
void SetCustomData |
( |
customData | | ) |
|
◆ SetIsoPlayer()
◆ SetMaxCharacters()
◆ SetModel()
void SetModel |
( |
characterData | | ) |
|
◆ SetPreviousCharacter()
◆ SetRole()
◆ SetUsername()
◆ SetWhitelisted()
void SetWhitelisted |
( |
factionID | , |
|
|
whitelisted | ) |
◆ SetWhitelists()
◆ StopSound()
void StopSound |
( |
soundNameOrID | | ) |
|
Stops a sound for the player.
- Parameters
-
◆ ValidatePlayerData()
void ValidatePlayerData |
( |
| ) |
|
◆ __index
The documentation for this class was generated from the following file: