Garry's Mod Wiki

Revision Difference

system.BatteryPower#517931

<function name="BatteryPower" parent="system" type="libraryfunc"> <description>Returns the current battery power.</description> <realm>Shared and Menu</realm> <rets> <ret name="" type="number">0-100 if on battery power.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; <ret name="" type="number">0-100 if on battery power.&lt;br&gt;&lt;br&gt; If plugged in, the value will be 255 regardless of charging state.</ret> </rets> </function>