PlayerProfile Function List
LoadFile(FileIndex)
Please note that LoadFile() will output a warning if your already loaded into a file!
Description - Loads into a file.
FileIndex - The file index load.
UnloadCurrentFile()
Description - Unloads the currently loaded file, so you can load into a new one.
GetCurrent()
Description - Returns the data stored in the currently loaded File.
SaveCurrent()
Description - Marks the currently loaded file to be saved. Will save to the DataStore in the next save interval.
GetFiles()
It is highly recomendend to use this data as read only to help prevent bugs with modifying unloaded files.
Description - Returns a table of all Files data.
GetLoadedFile()
Description - Returns the index of the currently loaded file or false if none is loaded.
Cleanup()
Automaticly ran on player leaving! It doesnt need to be fired unless you disable auto cleanup!
Description: Cleans up a PlayerProfile, saves whatever is in it, and allows the profile to be loaded by another server.
CopyFile(FileIndex, ToIndex)
Description - Overwrites FileB's with FileA's data.
FileIndex - The file which data is copyed.
ToIndex - The file which is overwriten.
DeleteFile(FileIndex)
Description - Overwrites the given files data with nil.
FileIndex - The file to be Overwritten.
MoveFile(FileIndex, ToIndex)
Description - Moves a file from one index to another.
FileIndex - The file to move
ToIndex - The file to move too.
SwapFile(FileAIndex, FileBIndex)
Description - Swaps two files data with each other. (A becomes B and B becomes A)
FileAIndex - File A
FileBIndex - File B
Last updated