PlayerProfile Function List

LoadFile(FileIndex)

Any "Current" functions will use the FileIndex.

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()

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()

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