> For the complete documentation index, see [llms.txt](https://brazzers-scripts.gitbook.io/brazzers-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brazzers-scripts.gitbook.io/brazzers-scripts/free-resources/perspective/statebags.md).

# Statebags

### `zoom`

{% hint style="info" %}
Returns whether the player is currently zooming in or not
{% endhint %}

* zoom: `boolean`

```lua
local zoomed = LocalPlayer.state.zoom

if zoomed then
    -- Do stuff when zoomed
else
    -- Do stuff when not zoomed
end
```

***

### `freeCam`

{% hint style="info" %}
Returns whether the player is currently using the freeCam or not
{% endhint %}

* freeCam: `boolean`

```lua
local usingFreeCam = LocalPlayer.state.freecam

if usingFreeCam then
    -- Do stuff when using free cam
else
    -- Do stuff when not using free cam
end
```

***
