> For the complete documentation index, see [llms.txt](https://stg-store.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stg-store.gitbook.io/documentation/scripts/fruit-job/configuration.md).

# Configuration

***

## <mark style="color:blue;">Configuration Guide for Fruit Job</mark>

This guide will help you set up and customize the \[Script Name] script for your FiveM server. Follow the steps below to configure the settings according to your preferences.

### <mark style="color:green;">1. Language Setting</mark>

Defines the language for the script. Supported languages are English (en), German (de), French (fr), and Spanish (sp).

```lua
STG.Language = 'en' -- Options: 'en', 'de', 'fr', 'sp'
```

### <mark style="color:green;">2. Framework Selection</mark>

Specifies the framework to be used. It can automatically detect the available framework (ESX or QBCore).

```lua
STG.Framework = 'auto' -- Options: 'esx', 'qb', 'auto'
```

### <mark style="color:green;">3. Marker Color</mark>

Sets the color for the marker in the script.

```lua
STG.marker.color = { r = 173, g = 3, b = 252, a = 140 }
```

### <mark style="color:green;">4. Marker Settings</mark>

Determines various visual and behavior settings for the marker.

```lua
STG.marker.enabled = true -- Enables or disables the marker
STG.marker.bobUpAndDown = false -- Marker moves up and down if true
STG.marker.faceCamera = true -- Marker faces camera if true
STG.marker.rotate = false -- Marker rotates if true
STG.marker.drawDistance = 50 -- Marker visibility distance
```

### <mark style="color:green;">5. Required Item</mark>

Defines the item required to interact with the script's features.

```lua
STG.required_item.enabled = true -- Enables or disables item requirement
STG.required_item.item.name = 'basket' -- Required item's name
STG.required_item.item.label = 'Basket' -- Required item's label
```

### <mark style="color:green;">6. Locations</mark>

Defines the locations for the picker, processor, and seller.

```lua
STG.locations = {
    ['picker'] = {
        location_center = vector3(-1791.6055, 1990.0214, 123.3859), -- Picking area center
        location_radius = 50.0, -- Picking area radius
    },
    ['processor'] = {
        location = vector3(-1923.2260, 2047.5359, 140.7344) -- Processing area
    },
    ['seller'] = {
        location = vector3(-1888.8861, 2048.6338, 140.9836) -- Selling area
    }
}
```

### <mark style="color:green;">7. Localization</mark>

Defines localized text for different languages.

```lua
STG.locales['en'] = {
    picker = 'Picker',
    processor = 'Processor',
    seller = 'Seller',
    missing_required_item = 'You do not have a %s.',
    picking_success = 'You have picked %s %s.',
}
```

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://stg-store.gitbook.io/documentation/scripts/fruit-job/configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
