HolyLib Wiki

ClientArg

ClientArg

This argument accepts the following types:

This is a special type of argument that internally tries to find the CBaseClient using the input.
If given a number it will treat it as the playerslot which is always the same as Player:EntIndex() - 1 and try to get the player on that slot

Recently Added

This was recently added in version (0.8 - DEV).

In an internal cleanup the global function Util::Get_Client was added to create more consistent behavior for arguments.
In previous functions may only accept a CBaseClient, or just a Player, a few even just using the playerslot number.