Jump to content

LoadPlayerBankTable: Difference between revisions

From CMM Wiki
LoadPlayerBankTable – created via PowerShell script (2025-11-11T21:12:31Z)
Tag: Recreated
 
m LoadPlayerBankTable – created via PowerShell script (2026-01-01T06:03:21Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          LoadPlayerBankTable|fDescription=  Loads the player bank data from a JSON persistence file if it exists, otherwise initializes an empty table and saves a default one, ensuring player bank data is always available.|parentFile=    cmm.persistence.lua|syntax=        CMM.LoadPlayerBankTable()|return=        nil|returnDesc=    Returns nothing, loads or initializes the player bank data and logs completion.|example=        CMM.LoadPlayerBankTable()|exampleDesc=    Loads player bank data from the persistence file or creates a new one if missing, then saves the data to ensure persistence.|related=        |note=          |envType= CMM}}
{{Template:FunctionInfo|fName=          LoadPlayerBankTable|fDescription=  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.|parentFile=    cmm.persistence.lua|syntax=        CMM.LoadPlayerBankTable()|return=        nil|returnDesc=    Returns nothing, loads or initialises the player bank data and logs completion.|example=        CMM.LoadPlayerBankTable()|exampleDesc=    Loads player bank data from the persistence file or creates a new one if missing, then saves the data to ensure persistence.|related=        |note=          |envType= CMM}}

Latest revision as of 19:03, 31 December 2025

Return to CMM Command Reference
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: