# SaveData

TIP

  • saveData(<file_name>, <data>)
  • With this function, you can save data to use later, even if the server restarts, the data won't be gone unless the file of the data gets deleted.
  • To retrieve the data that you saved, use the getData() function.

# Parameters

  • <file_name> The name of the file to save the data as string
  • <data> The data being saved as string, int, float, array, or bool

# Example

1: $players$ = array('Acsrel', 'Steve', $player$)
2: saveData('op_players', $players$)