# Exports

### Overview

The `SetupDigiScanner` function sets up the digital scanner specified parameters at the given coordinates. This documentation provides details on how to use the function, its parameters, and their expected values.

***

### Usage

```lua
exports['pengu_digiscanner']:SetupDigiScanner(vector3, parameters)
```

***

### Parameters

{% hint style="info" %}
`The '?'` symbol directly after a parameter means that parameter is not required unless defined otherwise.
{% endhint %}

* `vector3` (vector3): A vector3 coordinate where the digital scanner target will be located.
* `parameters` (table): A table containing parameters for setting up the digital scanner.
  * `event` (string): The event/command/action (function) associated with the digital scanner.
  * `args?` (table): Arguments for the event associated with the digital scanner.
  * `isServer?` (boolean): Specifies if the event type is a server side event or not.
  * `isCommand?` (boolean): Specifies if the event type is a command event or not.
  * `isAction?` (boolean): Specifies if the event type is an action (function) event or not.
  * `blip?` (table): Information for creating a blip for the digital scanner target.
    * `text?` (string): The text to be displayed on the blip.
    * `sprite` (integer): The sprite ID of the blip ([docs](https://docs.fivem.net/docs/game-references/blips/#blips)).
    * `display` (integer): The display ID of the blip ([docs](https://docs.fivem.net/natives/?_0x9029B2F3DA924928)).
    * `scale?` (integer): The scale of the blip (`1.0` is the normal size).
    * `color` (integer): The color ID of the blip ([docs](https://docs.fivem.net/docs/game-references/blips/#blip-colors)).
    * `opacity?` (integer): The opacity of the blip.
  * `interact?` (table): Information for the interaction scaleform.
    * `interactKey` (integer): Keycode Integer ([docs](https://docs.fivem.net/docs/game-references/controls/)).
    * `interactMessage` (string): Message next to the interact button scaleform.

***

### Example

```lua
local function DoAPrint(args)
    print('Good Job Pengu! '..args['bin'])
end

RegisterCommand('test', function ()
    exports['pengu_scaleform']:SetupDigiScanner(vector3(331.2, -1490.94, 29.27), {
        event = DoAPrint,
        isAction = true,
        args = {['bin'] = 'lol'},
        blip = {
            text = "Surprise Location",
            sprite = 9,
            display = 2,
            scale = 0.7,
            color = 2,
            opacity = 65,
        },
        interact = {
            interactKey = 38,
            interactMessage = 'View Print',
        }
    })
end)
```

<figure><img src="/files/u2SJOvE39lDrcK6UcplF" alt="" width="375"><figcaption><p>Preview when facing away from target.</p></figcaption></figure>

<figure><img src="/files/8hL40Gi8MAgcfYg6QHOi" alt="" width="375"><figcaption><p>Preview when facing towards target (outside of target distance).</p></figcaption></figure>

<figure><img src="/files/CX9mQY8yzvmxmYIpCOXH" alt="" width="375"><figcaption><p>Preview inside target distance facing any direction.</p></figcaption></figure>

<figure><img src="/files/fczuXOLqJYvJ0zLRQlv0" alt=""><figcaption><p>Preview of the blip created.</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://penguscripts.gitbook.io/documentation/pengu_digiscanner/exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
