system.BatteryPower

From Garry's Mod
Jump to: navigation, search
 system.BatteryPower( )

Description

Returns the current battery power.

Returns

number

0-100 if on battery power.

If plugged in, the value will be 255 regardless of charging state.
Personal tools
Navigation