LoadPlayerBankTable
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | LoadPlayerBankTable | |
| Function Description: | Loads the player bank data from a JSON persistence file if it exists, otherwise initialises an empty table and saves a default one, ensuring player bank data is always available. | |
| File Location: | cmm.persistence.lua | |
| Syntax: | CMM.LoadPlayerBankTable( ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| Example: | CMM.LoadPlayerBankTable() | |
| Example Description: | Loads player bank data from the persistence file or creates a new one if missing, then saves the data to ensure persistence. | |
| Related Functions: | ||
| Notes: | ||