Player:CheckLimit
Description
Checks if the limit of an entity type added by Player:AddCount is hit or not. If it's hit, it will call the GM:PlayerCheckLimit hook, and call Player:LimitHit if the hook doesn't return false.
This will always return true in singleplayer, as singleplayer does not have limits.
This function is only available in Sandbox and its derivatives.
Arguments
1 string str
The entity type to check the limit for. Default types:
- "constraints"
- "props"
- "ragdolls"
- "vehicles"
- "effects"
- "balloons"
- "cameras"
- "npcs"
- "sents"
- "dynamite"
- "lamps"
- "lights"
- "wheels"
- "thrusters"
- "hoverballs"
- "buttons"
- "emitters"
Garry's Mod
Rust
Steamworks
Wiki Help