> For the complete documentation index, see [llms.txt](https://acestudios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://acestudios.gitbook.io/docs/tactical-and-military/recon-optics/commands-and-exports.md).

# Commands & Exports

Commands, exports and common questions for ace\_reconoptics.

## Commands

Command names can be changed in `config.lua`.

| Command          | Permission                     | Available when            | Description                                        |
| ---------------- | ------------------------------ | ------------------------- | -------------------------------------------------- |
| `/binoculars`    | No permission option in config | `EnableCommandUse = true` | Uses the binoculars.                               |
| `/spottingscope` | No permission option in config | `EnableCommandUse = true` | Deploys the range-finding spotting scope.          |
| `/scopereset`    | No permission option in config | —                         | Resets a player who gets stuck while using optics. |

{% hint style="info" %}
To make the optics **item-only**, set `EnableCommandUse = false` and use the exports below.
{% endhint %}

## Exports

### activateACEBinoculars

**Side:** Client · **Parameters:** none · **Returns:** nothing documented

Uses the binoculars.

```lua
exports['ace_reconoptics']:activateACEBinoculars()
```

### activateACESpottingScope

**Side:** Client · **Parameters:** none · **Returns:** nothing documented

Deploys the spotting scope.

```lua
exports['ace_reconoptics']:activateACESpottingScope()
```

For ox\_inventory item definitions, see [Installation](/docs/tactical-and-military/recon-optics/installation.md#inventory-items-optional).

## FAQ

<details>

<summary>A player is stuck in an animation after using the optics</summary>

Run `/scopereset` (or the command set in `ClearPedTask`).

</details>

<details>

<summary>Thermal vision doesn't toggle on the binoculars</summary>

Thermal is off for binoculars by default (`BinocularSettings.ThermalVision = false`). Set it to `true` to allow it.

</details>

<details>

<summary>Zoom isn't strong enough</summary>

**Lower** `MaxZoomAmmount` for that tool. Lower values give more zoom.

</details>
