QBESXStandalone
Agency-Watch Exports & API
Now with AgencyOS27: a free update for everyone who already owns the watch.
v27.0.1Free7 Pages

01Client Exports
| Export | Description |
|---|---|
OpenWatch(mitte) | Opens the watch. Pass true to open it centred on screen instead of in its configured corner. |
CloseWatch() | Closes the watch and releases the NUI focus. |
ToggleWatch() | Closes the watch if it is open, opens it otherwise. |
IsWatchOpen() | Returns true while the watch UI is on screen. |
IsWatchLinked() | Returns false when the player switched the link to the Agency Phone off in the control centre. |
RunWatchAction() | Triggers whatever is bound to the orange action button (Config.ActionButton). |
GetWatchSettings() | Returns the full settings table the watch UI is built from (theme, face, size, apps, locale). |
SetWatchSetting(key, value) | Sets a single setting, saves it per character and applies it right away. |
SetWatchSettings(table) | Sets several settings at once and rebuilds the UI a single time instead of once per value. |
RequestWatchPairing() | Asks the server for a Companion app pairing code. The answer arrives as an event, not as a return value. |
ShowUpdate() | Opens the software-update screen of AgencyOS. |
HandlesDeath() | Returns true when the watch shows the emergency screen on death. The Agency Phone asks this so both devices never show it at once. |
GetFitness() | Returns the current fitness values: steps, distance, active minutes and calories of the running day. |
SetWatchAppInstalled(id, on) | Installs or removes one app for this player. The same thing the App Store does, so a server can hand out an app as a reward. |
FindWatch() | Makes the watch ring and light up, the way the Companion app's find function does. |
StopFindWatch() | Stops the ringing before it runs out on its own. |
IsWatchRinging() | Returns true while the watch is ringing. |
02Server Exports
| Export | Description |
|---|---|
IsPremium(src) | Returns true when this player's watch runs in the Pro version. The verdict comes from the handshake with the genuine Agency Phone, never from the client. |