> For the complete documentation index, see [llms.txt](https://pellix-1.gitbook.io/pellix-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pellix-1.gitbook.io/pellix-docs/tables/globals.md). Agents can also search and read this documentation through its [MCP server](https://pellix-1.gitbook.io/pellix-docs/~gitbook/mcp).

# globals

Allows to access global variables.

```lua
globals.curtime(): number
```

Returns current game time.

```lua
globals.tick_count(): number
```

Returns current number of ticks in the game.

:warning: `curtime()` and `tick_count()` are not available in the draw callback.

```lua
globals.network_game_client(): uintptr_t
```

Returns address of the network game client structure.

```lua
globals.local_player_controller(): uintptr_t
```

Returns address to the pointer of the local player controller.

```lua
globals.short_map_name(): string
```

Returns current map name. For example: `de_mirage`
