Garry's Mod Wiki

Revision Difference

system.BatteryPower#512041

<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;⤶ If plugged in, the value will be 255 regardless of charging state.</ret>⤶ </rets>⤶ </function>⤶ ⤶