🤠
KOJA DOCS
  • Home
  • Store
  • Discord
  • lib
    • Client
  • NEW
    • 🚗Cardealer
      • Installation
      • Configuration
        • Creating a Cardealer
        • Changing Language
        • Creating a webhook for logging
    • 🎁Daily Rewards
      • Installation
      • Configuration
        • đŸ‡ĩ🇱Changing Language
        • đŸ›Ąī¸Debug Prints
        • đŸšĒOpen Commands
        • 🛒Shop Link
        • âœī¸Theme
        • đŸ–Ĩī¸Auto Table
        • 🎁Rewards
        • đŸŽŸī¸Missions
        • 📔Promocodes
      • Guides
        • âœˆī¸Creating/Editing Locales
        • đŸ”ĢManaging Missions
        • 💎Setting Premium Status
    • 📊Hud
      • Installation
      • Configuration
        • đŸ‡ĩ🇱Changing Language
        • đŸ›Ąī¸Debug Prints
        • đŸšĒSettings Command
        • đŸ—ēī¸Hide Minimap
        • đŸ—’ī¸Notifications
        • đŸŽī¸Nitro
        • âš™ī¸Engine
        • đŸ’ēSeatbelt
        • 🤖Cruisemode
      • Guides
        • âœˆī¸Creating/Editing Locales
        • 🔗Progressbar
        • â„šī¸TextUI
    • đŸ”ĢShop Heist
      • Installation
      • Configuration
        • đŸ‡ĩ🇱Changing Language
        • 👮Required Police To Start Heist
  • 🛒Shops
    • Installation
    • Configuration
      • đŸ‡ĩ🇱Changing Language
      • đŸŽ¯Target
      • đŸ›ī¸Adding new shop
      • 🚗Server side exports
      • 📃SQL
    • Guides
      • âœˆī¸Creating/Editing Locales
  • 📜Dialogs
    • Installation
    • Configuration
      • đŸ‡ĩ🇱Changing Language
      • đŸŽ¯Target
      • 📃Create Dialog
      • 🎹Available Keys
      • 🌀Default Images
  • OLD
    • 🎓Jobselector [FREE]
      • 📕Step By Step Guide
      • âš™ī¸Server
    • đŸ› ī¸Crafting [FREE]
      • 📕Step By Step Guide
      • 👇Client
      • 👆Server
Powered by GitBook
On this page
  1. NEW
  2. Daily Rewards
  3. Configuration

Rewards

Explanation of the rewards configuration in the script

Explanation of parameters

day – The specific day on which the reward should be available.

item – The display name (label) of the reward item.

respname – The internal identifier (respawn name) of the item that should be given.

count – The quantity of the item to be rewarded.

image – The path to the item's image. The default path is ./images/respname.png, but you can also use NUI paths.

rarity – The rarity of the item, which is displayed in the user interface (UI).

All rarities: [gray, green, blue, red, yellow]


shared/config.lua
Config.Rewards = {
    ['basic'] = {
        [1] = { day = 1, item = 'Water', respname = 'water', count = 1, rarity = 'gray', image = './images/water.png' },
        [2] = { day = 2, item = 'Bread', respname = 'bread', count = 1, rarity = 'gray', image = './images/bread.png' },
        ...
    },
    ['premium'] = {
        [1] = { day = 1, item = 'Water', respname = 'water', count = 1, rarity = 'gray', image = './images/water.png' },
        [2] = { day = 2, item = 'Bread', respname = 'bread', count = 1, rarity = 'gray', image = './images/bread.png' },
        ...
    }
}
PreviousAuto TableNextMissions

Last updated 4 months ago

🎁
🎁