Garry's Mod Wiki

Revision Difference

Player:LimitHit#527815

<function name="LimitHit" parent="Player" type="classfunc"> <description>⤶ Shows "limit hit" notification in sandbox.⤶ ⤶ <note>This function is only available in Sandbox and its derivatives</note>⤶ <description>Shows "limit hit" notification in sandbox.⤶ <note>This function is only available in Sandbox and its derivatives.</note>⤶ </description> <realm>Shared</realm> <args> <arg name="type" type="string">Type of hit limit</arg>⤶ <arg name="type" type="string">Type of hit limit.</arg>⤶ </args> </function> <example> <description>Sends a fake "limit hit" notification</description>⤶ <description>Sends a fake `limit hit` notification.</description>⤶ <code> for i, ply in ipairs( player.GetAll() ) do for _, ply in ipairs( player.GetAll() ) do ply:LimitHit( "test" ) end </code> <output>A notification pops up saying "SBoxLimit_test"</output>⤶ ⤶ </example> <output>A notification pops up saying `SBoxLimit_test"`.</output>⤶ </example>