Player.CheckLimit

From GMod Wiki

Jump to: navigation, search
Gamemode Function: Player.CheckLimit
Player.CheckLimit is a function that is defined in the Sandbox Gamemode and its derivatives.
Function
Syntax Player:CheckLimit( String )
Where is this used?
Description:
Checks to if there is any limit of "sbox_max<string>" left on the current player.
Returns: Boolean
Part of Library: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.CheckLimit]Player.CheckLimit [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionQuits if the local player can't make any more balloons.
Used onNewerClient.png
Code
 
if !LocalPlayer():CheckLimit("balloons") then return end
 
OutputN/A


Additional Info

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox