Garry's Mod Wiki

engine.WriteSave

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

Description

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.