Garry's Mod Wiki

Garry's Mod Wiki

  ISave:StartBlock( string name )

Description

Starts a new block of data that you can write to inside current block. Blocks must be ended with ISave:EndBlock.

Arguments

1 string name
Name of the new block. Used for determining which block is which, returned by IRestore:StartBlock during game load.

Example

Example usage

saverestore.AddSaveHook( "HookNameHere", function( save ) save:StartBlock( "Test" ) save:WriteString( "myawesomestring" ) save:EndBlock() end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...