⚙️Configuration

Configuration guide of Fruit Job


Configuration Guide for Fruit Job

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.

1. Language Setting

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

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

2. Framework Selection

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

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

3. Marker Color

Sets the color for the marker in the script.

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

4. Marker Settings

Determines various visual and behavior settings for the marker.

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

5. Required Item

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

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

6. Locations

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

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
    }
}

7. Localization

Defines localized text for different languages.

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.',
}

Last updated