GKSPHONE V2Exports and events
State Bags
Phone state exposed on the player entity — readable from any script without an export call.
The phone writes these to the player's state bag and replicates them, so any script can read them without calling an export:
-- Server
local charging = Player(source).state.phoneIsCharging
-- Client, your own phone
local battery = LocalPlayer.state.phoneBattery
-- Client, another player
local open = Player(serverId).state.phoneOpen| Bag | Description |
|---|---|
phoneNumber | The phone number |
phoneOpen | Phone on or off |
phoneIsCharging | Check if the phone is charging |
phoneBattery | Phone charge percentage |
phoneSignal | Whether the phone signal is broken |
phoneIsChargingStation | Is the phone at the charging station? |

