Garry's Mod Wiki

saverestore.WriteVar

  saverestore.WriteVar( any value, ISave save )

Description

Writes a variable to the save game file that is being saved.

Arguments

1 any value
The value to save.

It can be one of the following types: number, boolean, string, Entity, Angle, Vector or table.

2 ISave save
The save object to write the variable to.