util.PrecacheModel
Description
Precaches a model for later use. Model is cached after being loaded once.
Modelprecache is limited to 8192 unique models. When it reaches the limit the game will crash.
Does nothing on the client.
Arguments
Example
If you have to deal with many models at a time, you'd better reduce the calls to that function. Too many calls will cause the game to run out of memory; e.g., too much precaching is a pre-crash. Use deep validation when you are about to spawn the model, and file validation on the client for drawing stuff. It is slow, so it's better to hash that as well.
Garry's Mod
Rust
Steamworks
Wiki Help