Unscoped Api
The api is accessible via the global variable GL. Scripts are also encouraged to use the scoped API which automatically handles cleanup. The scoped api is available with the script-specific api variable.
Properties
Section titled “Properties”commands
Section titled “commands”
staticcommands:Readonly<CommandsApi>
Functions for adding commands to the command palette
hotkeys
Section titled “hotkeys”
statichotkeys:Readonly<HotkeysApi>
Functions to listen for key combinations
staticlib: <T>(name) =>Libraries[T]
Gets the exported values of a library
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends string | number |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | T |
Returns
Section titled “Returns”Libraries[T]
staticlibs:Readonly<LibsApi>
Methods for getting info on libraries
staticnet:Readonly<NetApi>
Ways to interact with the current connection to the server, and functions to send general requests
patcher
Section titled “patcher”
staticpatcher:Readonly<PatcherApi>
Functions for intercepting the arguments and return values of functions
plugin()
Section titled “plugin()”
staticplugin: <T>(name) =>Plugins[T]
Gets the exported values of a plugin, if it has been enabled
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends string | number |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | T |
Returns
Section titled “Returns”Plugins[T]
plugins
Section titled “plugins”
staticplugins:Readonly<PluginsApi>
Methods for getting info on plugins
rewriter
Section titled “rewriter”
staticrewriter:Readonly<RewriterApi>
Functions to edit Gimkit’s code
storage
Section titled “storage”
staticstorage:Readonly<StorageApi>
Functions for persisting data between reloads
svelte_5_43_0
Section titled “svelte_5_43_0”
staticsvelte_5_43_0:Svelte
The exports of svelte v5.43.0, used internally by Gimloader and exposed to make scripts smaller. Should never be used by hand.
staticUI:Readonly<UIApi>
Functions for interacting with the DOM
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get
staticReact(): typeofReact
Gimkit’s internal react instance
Returns
Section titled “Returns”typeof React
ReactDOM
Section titled “ReactDOM”Get Signature
Section titled “Get Signature”get
staticReactDOM():__module
Gimkit’s internal reactDom instance
Returns
Section titled “Returns”__module
stores
Section titled “stores”Get Signature
Section titled “Get Signature”get
staticstores():Stores
A variety of Gimkit internal objects available in 2d gamemodes
Returns
Section titled “Returns”Stores