Configuration

Settings.lua

-- ==========================
-- RD CONFIGURATION SETTINGS
-- ==========================
Settings = {}

-- Framework detection
-- Options: "qbcore", "qbox", "esx"
-- "autodetect" will try to detect the framework automatically
Settings.Framework = 'autodetect'

-- Language/locale of the script
-- Example: 'en' = English, 'fr' = French , 'ar' = arabic
Settings.Locale = 'en'

-- Interaction color for menus, buttons, or markers
-- Options: "BLUE", "GREEN", "ORANGE", "RED", "WHITE", "YELLOW"
Settings.InteractionColor = "RED"

-- Delivery system settings
Settings.TotalPackages = 5              -- Total number of packages per delivery
Settings.RewardMin = 100                -- Minimum money reward per delivery
Settings.RewardMax = 125                -- Maximum money reward per delivery

-- Vehicle keys system
-- Supported vehicle key scripts:
-- "qb-vehiclekeys", "qbx_vehiclekeys", "cd_garage", "wasabi_carlock",
-- "qs-vehiclekeys", "renewed-vehiclekeys", "t1ger_keys",
-- "loaf_vehiclekeys", "ls-vehiclekeys", "codem-vehiclekeys"
Settings.VehicleKeys = "qbx_vehiclekeys"

-- Delivery time and penalties
Settings.MaxDeliveryTime = 300000       -- Maximum delivery time in milliseconds (5 minutes)
Settings.ReducedPaymentPercentage = 50  -- Payment percentage if delivery is late (50%)

-- Clothing system for player outfits
-- Options: "illenium-appearance", "qb-clothing", "fivem-appearance", "esx_skin","tgiann-clothing","dx_clothing"
Settings.Clothing = "illenium-appearance"

-- Inventory system
-- Supported: "qb-inventory", "ox_inventory", "qs_inventory", "ls-inventory",
-- "codem-inventory", "esx_inventoryhud", "core_inventory"
Settings.Inventory = "ox_inventory"

-- Special item for deliveries or missions
Settings.CertificateItem = "lockpick"

-- Predefined delivery locations (vector3 coordinates)
Settings.DeliveryLocations = {
    vector3(318.255371, 562.251221, 154.539261),
    vector3(-17.561855, -296.779327, 45.757820),
    vector3(414.994629, -217.169327, 59.910404),
    -- add more
}

-- Default outfits for male and female characters
Settings.Outfit = {
    Male = {
        torso = { component = 0, drawable = 349, texture = 0 },
        legs  = { component = 0, drawable = 10, texture = 0 },
        shoes = { component = 0, drawable = 10, texture = 0 },
        top   = { component = 0, drawable = 15, texture = 0 },
        arms  = { component = 0, drawable = 77, texture = 0 }
    },
    Female = {
        torso = { component = 0, drawable = 359, texture = 2 },
        legs  = { component = 0, drawable = 129, texture = 0 },
        shoes = { component = 0, drawable = 24, texture = 0 },
        top   = { component = 0, drawable = 15, texture = 0 },
        arms  = { component = 0, drawable = 9, texture = 0 }
    }
}

-- Pharmacy deliveries settings
Settings.PharmaciesDeliveries = {
    {
        model = "s_m_m_doctor_01",
        coords = vector3(117.5334, 4.1135, 66.8445),
        heading = 164.8829,
        vanModel = "rd_pharmacycar",
        vanSpawn = vector3(125.2104, -1.6524, 67.6094),
        vanHeading = 159.8333
    },
}


Settings.BossGradeName = "Chief"
-- Pharmacy locations and settings
Settings.Pharmacies = {
    ["PHARMACY 1"] = {
        label = "PHARMACY 1",
        job = "police",
        dutycommand = "duty",
        blip = {
            coords = vector3(110.8492, 5.3323, 67.7734),
            sprite = 51,
            color = 46,
            scale = 1.1,
        },
        ped = {
            model = "s_m_m_doctor_01",
            coords = vector4(113.3300, -5.7853, 67.8658, 210.5677),
        },
        vehicle = {
            model = "rd_pharmacycar",
            spawn = vector4(108.6391, -7.1314, 67.9060, 251.4997),
        },
        stashes = {
            { coords = vector3(110.2423, 8.6815, 67.7734), slots = 15, weight = 230000 },
        },
        duty = {
            vector3(110.8243, 5.1855, 67.7734)
        },
        bossmenu = {
            vector3(100.7621, 13.4947, 67.7734)
        },
        clothing = {
            vector3(112.5693, 13.3249, 67.7734)
        },
        billing = {
            vector3(109.2251, 5.7877, 67.7734)
        },
        makemedicament = {
            vector3(100.8657, 7.1456, 67.7734)
        },
        shop = {
            vector3(101.2048, 0.1557, 67.7752)
        },
        shopItems = {
            label = "Shop",
            items = {
                { name = "alcohol", price = 50, amount = 500, type = "item", slot = 1 , image = "https://r2.fivemanage.com/e9ayQ4VVHnYGIcG9ROsZf/alchol.png" },
                { name = "hwater",  price = 50, amount = 500, type = "item", slot = 2 , image = "https://r2.fivemanage.com/e9ayQ4VVHnYGIcG9ROsZf/hwater.png" },
                { name = "chemical", price = 50, amount = 500, type = "item", slot = 3 , image = "https://r2.fivemanage.com/e9ayQ4VVHnYGIcG9ROsZf/chemical.png" },
                { name = "sugar",   price = 50, amount = 500, type = "item", slot = 4 , image = "https://r2.fivemanage.com/e9ayQ4VVHnYGIcG9ROsZf/sugar.png" },
                { name = "herbs",   price = 50, amount = 500, type = "item", slot = 5 , image = "https://r2.fivemanage.com/e9ayQ4VVHnYGIcG9ROsZf/herbs.png" },
            }
        }
    },
}

-- Medicaments configuration
Settings.medicaments = {
    ["doliprane"] = {
        ingredients = {chemical=1, alcohol=1, hwater=1},  -- needs 1 of each
        give = 1,
        duration = 5000,
        cooldown = 10000, -- 10 seconds cooldown
        effect = {type="heal", value=25},
        screenEffect = "HeistCelebPass",
        screenEffectTime = 10000
    },
    ["dstress"] = {
        ingredients = {herbs=2, hwater=1, sugar=1},  -- needs 2 herbs, 1 hwater, 1 sugar
        give = 2,
        duration = 5000,
        cooldown = 10000,
        effect = {type="stress", value=20},
        screenEffect = "MenuMGSelectionIn",
        screenEffectTime = 10000
    },
    ["nicardipine"] = {
        ingredients = {chemical=1, alcohol=1, herbs=1},
        give = 1,
        duration = 5000,
        cooldown = 10000,
        effect = {type="thirst", value=30},
        screenEffect = "DrugsTrevorClownsFight",
        screenEffectTime = 10000
    },
    ["glycogen"] = {
        ingredients = {sugar=2, alcohol=1, hwater=1},
        give = 3,
        duration = 5000,
        cooldown = 10000,
        effect = {type="hunger", value=30},
        screenEffect = "DeathFailNeutralIn",
        screenEffectTime = 10000
    },
    ["flexen"] = {
        ingredients = {chemical=1, herbs=1, hwater=1},
        give = 1,
        duration = 5000,
        cooldown = 15000, -- a bit longer for full heal
        effect = {type="fullheal"},
        screenEffect = "MP_corona_heist",
        screenEffectTime = 10000
    },
    ["rhumix"] = {
        ingredients = {sugar=1, hwater=1, alcohol=1},
        give = 2,
        duration = 5000,
        cooldown = 10000,
        effect = {type="healstress", heal=10, stress=5},
        screenEffect = "HeistCelebPass",
        screenEffectTime = 10000
    },
    ["diclo"] = {
        ingredients = {chemical=1, alcohol=1, herbs=1},
        give = 1,
        duration = 5000,
        cooldown = 10000,
        effect = {type="heal", value=50},
        screenEffect = "HeistCelebPass",
        screenEffectTime = 10000
    }
}


-- Certificate / ID card design settings
Settings.Certificate = {
    ServerName = "RDSTORE",
    Logo = "https://r2.fivemanage.com/fQtmVEJJPQaLEy7diHS5M/Nouveau_projet_1.png",
    PrimaryColor = "#0000FF",
    BorderColor = "#0000FF",
    HospitalName = "PILLBOX",
    ServerWeb = "https://rdstore.tebex.io/"
}


Settings.AmountToTagEveryoneOnLogs = 1000000

1. Framework Settings

  • This tells the script which server framework to use. Options:

    • "qbcore" – for QBCore framework

    • "qbox" – for QBox framework

    • "esx" – for ESX framework

    • "autodetect" – the script will try to figure it out automatically.


2. Language/Locale

  • Defines the language for text, notifications, and menus.

    • 'en' = English

    • 'fr' = French

    • 'ar' = Arabic, etc.


3. Interaction Color

  • The color of menus, markers, or buttons when players interact. Options: "BLUE", "GREEN", "ORANGE", "RED", "WHITE", "YELLOW".


4. Delivery System Settings

  • How many packages a player delivers per job.

  • Minimum and maximum payment per delivery.


5. Vehicle Keys System

  • Integrates the vehicle key script for managing delivery vehicles. Supported scripts include:

    • "qb-vehiclekeys", "qbx_vehiclekeys", "cd_garage", "wasabi_carlock", etc.


6. Delivery Time and Penalties

  • Maximum time to complete delivery (in milliseconds → 5 minutes).

  • If late, the player receives 50% of the reward.


7. Clothing/Outfit System

  • Controls how players can change outfits. Supported systems: "illenium-appearance", "qb-clothing", "fivem-appearance", "esx_skin", "tgiann-clothing", "dx_clothing".

  • Default male and female outfits are also defined under Settings.Outfit.


8. Inventory System

  • Integrates with the server inventory system. Supported: "qb-inventory", "ox_inventory", "esx_inventoryhud", etc.


9. Special Item

  • This is the item required for special actions, e.g., starting a delivery, using a boss menu, etc.


10. Delivery Locations

  • Predefined spots where players deliver items.


11. Pharmacies Configuration

  • Each pharmacy has:

    • Job: job = "police" (who can use it)

    • Blip: Map marker (coordinates, sprite, color, scale)

    • Ped: NPC model and position

    • Vehicle: Van model and spawn location

    • Stashes: Storage locations with slots and weight

    • Duty: Clock in/out position

    • Boss menu: Position for boss access

    • Clothing, Billing, Medicament crafting, Shop: Coordinates for each interaction

    • Shop Items: Items available to buy, with prices, amount, and images


12. Medicaments (Drugs / Medicines)

  • Each medicine requires ingredients to craft.

  • Gives the player an effect:

    • "heal" → restores health

    • "stress" → reduces stress

    • "thirst" → reduces thirst

    • "hunger" → reduces hunger

    • "fullheal" → fully restores health

    • "healstress" → heals health and stress together

  • screenEffect = visual effect when used.

  • cooldown = time before player can use again.


13. Boss Settings

  • Defines the grade name for the boss menu (so you can change who has access).


14. Certificate / ID Card

  • Design settings for the ID card or certificate the player receives.


15. Miscellaneous

  • If a transaction/log exceeds this amount, it tags everyone in the Discord log.


✅ Summary: This config controls everything about the pharmacy/delivery system:

  • Framework & inventory integration

  • Vehicle keys

  • Delivery locations & payments

  • Shops & items

  • Medicaments crafting & effects

  • Boss and clothing systems

  • Certificates & logging

Last updated