Signature
native cs_set_user_model(index, const model[], bool:update_index = false);
Description
Sets the client's player model.
Notes
-
This is not a one-time set. The CStrike module will remember the
selected model and try to prevent attempts at changing the player
model, or immediately re-apply it if necessary.
-
Updating modelindex is useful for custom models which don't have
the same structure as the default ones (hitbox, etc..). Model must
be precached before.
Parameters
- index — Client index
- model — Model name
- update_index — If true, the modelindex is updated as well
No return value
Errors
-
If the client index is not within the range of 1 to
MaxClients, the client is not connected, the provided
model is empty, or if modeindex is updated and the
provided model is not precached, an error will be thrown.