SlashCo Wiki

SlashCo.PrecacheItem

  SlashCo.PrecacheItem( string itemName )

Description

Precaches a registered item's model, view model, holstered world model and world model (whichever are set), and calls the item's own ITEM.Precache function if it has one.
Looks up the item definition from SlashCoItems by name.

Arguments

1string itemName

Name of the registered item (key in SlashCoItems).