native
cs_set_player_view_model
Syntax
native cs_set_player_view_model(id, weaponid, const view_model[])
Description
Sets a custom view 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/v_knife_custom.mdl") |