Garry's Mod Wiki

engine.WriteSave

  engine.WriteSave( string saveData, string name, number time, string map, string workshopID = nil )

Description

This is used internally - although you're able to use it you probably shouldn't. Do not use.

Stores savedata into the game (can be loaded using the LoadGame menu)

Arguments

1 string saveData
Data generated by gmsave.SaveMap.
2 string name
Name the save will have.
3 number time
When the save was saved during the game (Put CurTime here)
4 string map
The map the save is used for.
5 string workshopID = nil
The workshop ID for the saves' map.