Garry's Mod Wiki

Revision Difference

engine.WriteSave#563039

<function name="WriteSave" parent="engine" type="libraryfunc"> <description>Stores savedata into the game (can be loaded using the LoadGame menu)</description>⤶ <description>⤶ <internal>Do not use.</internal>⤶ 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 <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 <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>