🤠
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. Guides

Managing Missions

A quick guide on updating your own missions for players!

-- Triggers a server event to update the mission progress
-- @param missionId (string) - The ID of the mission being updated
-- @param progress (number) - Number of progress to add
-- @param LocalPlayer.state.tokenizer_KOJA_DAILYREWARDS (string) - Users token
TriggerServerEvent('koja_dailyrewards:server:updateProgress', missionId, progress, LocalPlayer.state.tokenizer_KOJA_DAILYREWARDS)

-- EXAMPLE
TriggerServerEvent('koja_dailyrewards:server:updateProgress', 'test_mission1', 2, LocalPlayer.state.tokenizer_KOJA_DAILYREWARDS)
-- Does the same thing but with a export and in server
-- @param source (number) - Players source you want to set the progress to
-- @param missionId (string) - The ID of the mission being updated
-- @param progress (number) - Number of progress to add
exports['resourcename']:updateProgress(source, missionid, progress)

-- EXAMPLE
exports['KOJA_DAILYREWARDS']:updateProgress(source, 'test_mission1', 3)

PreviousCreating/Editing LocalesNextSetting Premium Status

Last updated 4 months ago

🎁
đŸ”Ģ