# Basic Configuration

{% hint style="info" %}
The file is located in the script's root directory and is named `config.lua`.
{% endhint %}

## UseDistanceChecking

`boolean`&#x20;

Controls whether the script shows text and handles key interactions when players approach peds.

**When `true`:**

* Shows text over peds when you get close
* Handles key interactions (E to interact)
* Works with both 3D text and TextUI systems

**When `false`:**

* Disables automatic text display and key interactions
* Use this if you're only using ox\_target/qb-target
* Better performance when you don't need built-in interactions

**Simple rule:** Set to `false` if you're using only external targeting systems (ox\_target, etc.). Set to `true` if you want text to appear when approaching peds.

## UseEveryTickText

`boolean`

Choose between built-in 3D text rendering and external TextUI systems.

* `true` - Uses built-in every-frame 3D text rendering (ready to use, no setup required)
* `false` - Uses TextUI system that you must implement yourself in `CFunctions.ShowText()` and `CFunctions.HideText()`. Good for TextUI systems that don't need every-tick usage.

## DistanceCheckInterval

`number` (in milliseconds)

How often the script checks player distance to peds when no interactions are active. Default is `1000` (1 second).

## InteractionKey

`number`&#x20;

Key to open ped dialog when you use key interaction to open it. You can find all key codes [here](https://docs.fivem.net/docs/game-references/controls/).

## PlayerInvisibleWhileInDialog

`boolean`

To make a player invisible locally while dialog is open set it to `true` . (Other players can still see the player)

## PedCam

`table`&#x20;

Default camera settings for the ped. These settings will be used if specific camera settings are not defined for the created ped.

* `offset` - offset calculated from the ped position.
* `fov` - camera FOV
* `pointZOffset` - Z offset of `PointCamAtEntity`&#x20;

## Locales

This one should be easy to understand. The script uses string formatting, and the comments explain what each `%s` in the format represents.

## Default config

```lua
Config = {}

Config.UseDistanceChecking = true
Config.InteractionKey = 38 -- E
Config.UseEveryTickText = true
Config.DistanceCheckInterval = 1000
Config.PlayerInvisibleWhileInDialog = true

Config.PedCam = {
  offset = {
    x = 0.0,
    y = 2.0,
    z = 1.0
  },
  fov = 50.0,
  pointZOffset = 0.0
}

Locales = {
  -- First %s is the ped name, second %s is the ped group
  ['ped_over_head'] = '%s [~b~%s~w~]',
  -- %s ped name
  ['interact_ped_over_head'] = 'Press  ~INPUT_CONTEXT~to interact with ~g~%s~w~',
  -- For those who are using custom fonts
  ['blip_text_component_string'] = '%s',
}
```


---

# 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://docs.syntaxa.xyz/ped-dialog/configuration/basic-configuration.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.
