> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: GlobalGameAPI
icon: braces
---

# <ApiPageIcon icon="braces" />GlobalGameAPI

## panorama.GlobalGameAPI<ApiTag label="object type" />

JavaScript global object `GlobalGameAPI`, reached from Lua as `panorama.GlobalGameAPI`. Call its members with a dot.

<ApiMembers>
  <ApiMember kind="fn" name="panorama.GlobalGameAPI.Commit" args="" sig="[{&#x22;s&#x22;:&#x22;panorama.GlobalGameAPI.Commit&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" />

  <ApiMember kind="fn" name="panorama.GlobalGameAPI.GetGlobalPoints" summary="Ensure subscribed and get global points" args="" sig="[{&#x22;s&#x22;:&#x22;panorama.GlobalGameAPI.GetGlobalPoints&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;integer&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#integer&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;integer&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#integer&#x22;}]]" />

  <ApiMember kind="fn" name="panorama.GlobalGameAPI.GetState" args="" sig="[{&#x22;s&#x22;:&#x22;panorama.GlobalGameAPI.GetState&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;}]" ret="[[{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;}]]" />
</ApiMembers>
