Garry's Mod Wiki

util.PrecacheSound

  util.PrecacheSound( string soundName )

Description

Precaches a sound for later use. Sound is cached after being loaded once.

Soundcache is limited to 16384 unique sounds on the server. Due to this fact this function is disabled on purpose, as exceeding the limit causes the server to shutdown.
Ultimately does nothing on client, and only works with sound scripts, not direct paths.

Arguments

1 string soundName
The sound to precache.