Precaching

Before you can use any resource in the game it needs to be precached.

bool WeaponIsPrecached(string weapon)
bool ModelIsPrecached(asset model)
void PrecacheWeapon(string weapon)

Precache a weapon.

void PrecacheModel(asset modelFile)

Precache a model.

void PrecacheMaterial(asset material)

Precache a material

void PrecacheImpactEffectTable(string effects)

Precache an impact effects table.

int PrecacheParticleSystem(asset particle)

For more information about particles read the native particle documentation