native
cs_set_user_nvg
Syntax
native cs_set_user_nvg(index, nvgoggles = 1);
Description
Sets the client's night vision goggles.
Parameters
| index | Client index |
|---|---|
| nvgoogles | If nonzero the NVG will be added to the client's inventory, otherwise they will be removed from it |
Return
This function has no return value.
Error
If the client index is not within the range of 1 to
MaxClients, or the client is not connected, an error
will be thrown.