Garry's Mod Wiki

Revision Difference

engine.WriteSave#560563

<function name="WriteSave" parent="engine" type="libraryfunc"> <description>Stores savedata into the game (can be loaded using the LoadGame menu)</description> <realm>Client</realm> <args> <arg name="saveData" type="string">Data generated by gmsave.SaveMap</arg>⤶ <arg name="saveData" type="string">Data generated by <page>gmsave.SaveMap</page>.</arg>⤶ <arg name="name" type="string">Name the save will have.</arg> <arg name="time" type="number">When the save was saved during the game (Put CurTime here)</arg> <arg name="time" type="number">When the save was saved during the game (Put <page>Global.CurTime</page> here)</arg> <arg name="map" type="string">The map the save is used for.</arg> <arg name="workshopID" type="string" default="nil">The workshop ID for the saves' map.</arg>⤶ </args> </function>