native

cs_set_player_weap_model

Syntax

native cs_set_player_weap_model(id, weaponid, const weapon_model[])

Description

Sets a custom weapon model for a specific weapon for a player.

Note: if you pass an empty string, model will be hidden.

Parameters

id Player index.
weaponid Weapon to replace model for. (in CSW_ format)
view_model Full path to model. (e.g. "models/p_knife_custom.mdl")