Garry's Mod Wiki


The gmsave library provides functions relating to the singleplayer save system in Garry's Mod.


gmsave.LoadMap( string mapData, Player ply = NULL, function callback = nil )
Loads a saved map.
gmsave.PlayerLoad( Player ply, table data )
Sets player position and angles from supplied table
table gmsave.PlayerSave( Player ply )
Returns a table containing player position and angles. Used by gmsave. SaveMap.
string gmsave.SaveMap( Player ply )
Saves the map
Returns if we should save this entity in a duplication or a map save or not.