Player/CheckLimit

From Garry's Mod
Jump to: navigation, search
 Player:CheckLimit( )

Description

This function or feature is only available in the Sandbox gamemode and its derivatives.

Checks if the limit is hit or not. If it is, it will throw a notification saying so.

Arguments

string limitType

Limit type. In unmodified Sandbox possible values are:

  • "props"
  • "ragdolls"
  • "vehicles"
  • "effects"
  • "balloons"
  • "cameras"
  • "npcs"
  • "sents"
  • "dynamite"
  • "lamps"
  • "lights"
  • "wheels"
  • "thrusters"
  • "hoverballs"
  • "buttons"
  • "emitters"

Returns

boolean

Returns true if limit is not hit, false if it is hit
Personal tools
Navigation