Garry's Mod Wiki

SANDBOX:SpawnlistContentChanged

  SANDBOX:SpawnlistContentChanged()

Description

Called when changes were made to the spawnmenu like creating a new category.

Example

Plays a sound every time it's called.

hook.Add("SpawnlistContentChanged", "Example", function() surface.PlaySound( "ambient/water/drip" .. math.random( 1, 4 ) .. ".wav" ) end)