Garry's Mod Wiki
Description
Called whenever a player is about to spawn something to see if they hit a limit for whatever they are spawning.
This hook will not be called in singleplayer, as singleplayer does not have limits.
Arguments
3 number current
The amount of whatever player is trying to spawn that the player already has spawned.
4 number defaultMax
The default maximum count, as dictated by the
sbox_max<limitName>
convar on the server. This is the amount that will be used if nothing is returned from this hook.Returns
Example
Having multiple PlayerCheckLimit hooks that return values WILL conflict
Removes prop spawn limit for admins.
Example
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...