GKSPHONE V2
Exports and events
Every export, event and state bag GKSPHONE V2 exposes for your own scripts.
There are three ways your scripts talk to the phone, and picking the right one saves a lot of work:
| You want to | Use |
|---|---|
| Make the phone do something — send a message, start a call, add a map blip | Exports, client or server side |
| React to something a player did on the phone | Server events |
| Read phone state off a player without calling anything | State bags |
Client Exports
Notifications, calls, custom apps and widgets, phone health, battery, signal, GPS.
Server Exports
Messages, numbers, mail, map locations, phone reset, and player data.
Server Events
Fired on calls, messages, social posts, service reports, and screen or battery damage.
State Bags
Phone number, open state, battery, charging and signal — readable from any script.
Building a whole app rather than calling into an existing one? See Custom App and Custom Widget.

