Garry's Mod Wiki

PrecacheSentenceFile

  PrecacheSentenceFile( string filename )

Description

Load and precache a custom sentence file.

Arguments

1 string filename
The path to the custom sentences.txt.

Example

Precache a file named "customsentences.txt" in the data directory.

PrecacheSentenceFile( "data/customsentences.txt" )
Output: Loads and precaches the sentences.