PrecacheModel Function

Precaches a given model.

int PrecacheModel(const char[] model, bool preload)

Parameters

const char[] model

Name of the model to precache.

bool preload

If preload is true the file will be precached before level startup.

Return Value

Returns the model index, 0 for error.