> For the complete documentation index, see [llms.txt](https://docs.kuzquality.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kuzquality.com/resources/premium-resources/drone-deliveries-+-phone-app-flyby/config.md).

# Config

```lua
Config = {}

Config.locale = 'en'

-- Adds additional debug prints to the consoles. Useful when debugging issues.
Config.debug = false

Config.command = {
    -- Whether to allow the usage of the command to open a custom phone UI with the Flyby app
    -- It is recommended to disable the command when using a phone which supports the custom Flyby app
    enabled = true,
    command = 'flyby',
}

Config.cart = {
    -- Max amount of items per order
    maxItems = 5,
}

Config.delivery = {
    -- Delivery fee added on top of all the items in the basket
    fee = 250,

    -- How long the delivered box will remain on the ground for
    boxDespawn = 1800, -- 30 minutes in seconds

    -- Speed of the drone
    timePerDistance = 2, -- How many seconds will take for the drone to travel 100 meters
    pickingTime = 20, -- A fake "Order picking time", static time value that gets added on top of the distance based calculation

    minDeliveryTime = 40, -- Minimum TOTAL delivery time in seconds (picking + delivery + drone flight combined will never be quicker than this value)
}

-- Fake dispatch locations used to calculate the delivery time. When placing an order, the nearest dispatch location will be chosen and used
-- for the calculation of the delivery time
Config.dispatchLocations = {
    { label = 'Los Santos Central', coords = vec3(909.18, -1138.92, 30.79) },
    { label = 'Paleto Bay',         coords = vec3(-418.17, 6141.50, 35.85) },
}

-- Zones in which deliveries using Flyby will be forbidden
Config.blacklistZones = {
    { label = 'Los Santos International Airport', coords = vec3(-1040.0, -2965.0, 13.0), radius = 450.0 },
    { label = 'Fort Zancudo Military Base',       coords = vec3(-2110.0, 3050.0, 32.0),  radius = 500.0 },
    { label = 'Sandy Shores Airfield',            coords = vec3(1703.0, 3251.0, 40.0),   radius = 200.0 },
}

-- Marker indicating the location of the upcoming delivery
Config.deliveryMarker = {
    enabled = true,

    type = 27,
    scale = vec3(0.45, 0.45, 0.45),
    color = { r = 64, g = 200, b = 200, a = 180 },
    bob = false,
    faceCamera = false,
    rotate = true,
    drawDistance = 15.0,
    heightOffset = 0.05,
}

--[[
    Available category icons (Material Design Icons):
    - md-fastfood-outlined            - Food
    - md-localpharmacy-outlined       - Medical/Pharmacy
    - md-build-outlined               - Tools
    - md-devices-outlined             - Electronics
    - md-phone-iphone-outlined        - Phone
    - md-pets-outlined                - Pets
    - md-sports-soccer-outlined       - Sports
    - md-menu-book-outlined           - Books
    - md-localbar-outlined            - Drinks/Bar
    - md-cleaning-services-outlined   - Cleaning
    - md-weekend-outlined             - Furniture
    - md-checkroom-outlined           - Clothing
    - md-spa-outlined                 - Beauty/Spa
    - md-toys-outlined                - Toys
    - md-coffee-outlined              - Coffee
    - md-local-florist-outlined       - Flowers
    - md-cake-outlined                - Bakery
    - md-directions-car-outlined      - Automotive
    - md-headphones-outlined          - Audio
    - md-laptop-outlined              - Computers
    - md-favorite-outlined            - Heart
    - md-fingerprint                  - Fingerprint
    - md-mail-outlined                - Mail
    - md-carcrash-outlined            - Car alert
    - md-autoawesome-outlined         - Stars
    - md-diamond-outlined             - Diamond
    - md-scubadiving-outlined         - Scuba Diving
    - md-sportsmotorsports-outlined   - Helmet
    - md-localfiredepartment-outlined - Fire

    -- Feel free to reach out on Discord if there any any other icons you wish to use

    Job restrictions:
    - jobs = { 'job1', 'job2' }  -- player must have one of these jobs
    - If no jobs field, item is available to everyone

    Featured items:
    - featured = true  -- marks item as featured on home page
    - If no items marked as featured, random items will be shown

    Amount:
    - amount = 50  -- player receives 50 of this item per purchase
    - If no amount field, defaults to 1

    You can edit, delete and add as many categories and items as you'd like
]]
Config.items = {
    ['tools'] = {
        categoryLabel = 'Tools',
        icon = 'md-build-outlined',
        items = {
            { item = 'lockpick', label = 'Lockpick', price = 250, jobs = { 'mechanic', 'police' } },
            { item = 'fixkit', label = 'Repair Kit', price = 500 },
            { item = 'fixtool', label = 'Advanced repair Kit', price = 1000 },
            { item = 'ziptie', label = 'Ziptie', price = 100, amount = 5 },
        }
    },
    ['food'] = {
        categoryLabel = 'Food & Drinks',
        icon = 'md-fastfood-outlined',
        items = {
            { item = 'burger', label = 'Burger', price = 50, featured = true },
            { item = 'water', label = 'Water Bottle', price = 25, featured = true },
            { item = 'mustard', label = 'Mustard', price = 50 },
            { item = 'sprunk', label = 'Sprunk', price = 30 },
            { item = 'coffee', label = 'Coffee', price = 60, featured = true },
        }
    },
    ['medical'] = {
        categoryLabel = 'Medical',
        icon = 'md-localpharmacy-outlined',
        items = {
            { item = 'bandage', label = 'Bandage', price = 300, featured = true, amount = 2 },
            { item = 'firstaid', label = 'First Aid Kit', price = 350, jobs = { 'ambulance', 'ems' } },
            { item = 'painkillers', label = 'Painkillers', price = 75, amount = 10 },
        }
    },
    ['electronics'] = {
        categoryLabel = 'Electronics',
        icon = 'md-devices-outlined',
        items = {
            { item = 'phone', label = 'Phone', price = 500 },
            { item = 'radio', label = 'Radio', price = 300 },
            { item = 'laptop', label = 'Laptop', price = 3500 },
            { item = 'WEAPON_FLASHLIGHT', label = 'Flashlight', price = 1000 },
        }
    },
    ['weapons'] = {
        categoryLabel = 'Weapons & Ammo',
        icon = 'md-localfiredepartment-outlined',
        items = {
            { item = 'WEAPON_KNIFE', label = 'Knife', price = 3000 },
            { item = 'WEAPON_HATCHET', label = 'Hatchet', price = 5000 },
            { item = 'WEAPON_PISTOL', label = 'Pistol', price = 19000 },
            { item = 'WEAPON_APPISTOL', label = 'AP Pistol', price = 28000 },
            { item = 'WEAPON_MICROSMG', label = 'Micro SMG', price = 60000 },
            { item = 'WEAPON_PUMPSHOTGUN', label = 'Pump Shotgun', price = 40000 },
            { item = 'ammo-9', label = '9mm Ammo', price = 2500, amount = 50 },
            { item = 'ammo-45', label = '.45 ACP', price = 2200, amount = 50 },
            { item = 'ammo-shotgun', label = '12 Gauge', price = 1500, amount = 8 },
        }
    },
    ['misc'] = {
        categoryLabel = 'Miscellaneous',
        icon = 'md-autoawesome-outlined',
        items = {
            { item = 'cigarette', label = 'Cigarette', price = 110, amount = 20 },
            { item = 'sewing_kit', label = 'Sewing Kit', price = 220 },
            { item = 'blanket', label = 'Blanket', price = 500 },
        }
    },
}

```
