XTask
Browse AddonsDownload RLIB
  • Introduction
  • Showcase
  • Changelog
    • 🟥v4.5.0.0
    • 🟥v4.4.0.0
  • FAQ
    • 🟥Addon Won't Show
    • 🟥Incompatible Addons
    • 🟥Modified Script
    • 🟥Refunds
    • 🟥Script Errors
    • 🟥When Are Updates?
  • ❱ Setup
    • 🟪Install
    • 🟪Verify
    • 🟪Workshop
    • 🟪Docs / Web
  • ❱ Configuration
    • 🟪Settings
    • 🟪Achievements
      • 🧢XTASK.enabled
      • 🧢XTASK.title
      • 🧢XTASK.desc
      • 🧢XTASK.author
      • 🧢XTASK.icon
      • 🧢XTASK.cat
      • 🧢XTASK.cat_clr
      • 🧢XTASK.po_enabled
      • 🧢XTASK.po
      • 🧢XTASK.maxreq
      • 🧢XTASK.stat
      • 🧢XTASK.family
      • 🧢XTASK.gamemode
      • 🧢XTASK.trigger
      • 🧢XTASK.onClient
      • 🧢XTASK.onShared
      • 🧢XTASK.onServer
      • 🧢XTASK.family
    • 🟪Languages
  • ❱ First Use
    • 🟪Binds
  • ❱ Developers
    • 🟪Env
Powered by GitBook
On this page
  • ▸ Data Type
  • ▸ Available Options
  • ▸ Example
  • ▸ Notes
  1. ❱ Configuration
  2. Achievements

XTASK.gamemode

Specifies the gamemode(s) that this achievement will load with.

▸ Data Type

table

▸ Available Options

darkrp

Includes darkrp, starwarsrp, hogwartsrp

murder

terrortown

prophunt

Includes prophunt, prophunters, prophuntx

zombiesurvival

deathrun

Includes both versions of deathrun

melonbomber

▸ Example

To set your achievement to only load with TTT; you can use the following:

XTASK.gamemode  = { 'terrortown' }

▸ Notes

If you do not provide this parameter at all; the achievement will be loaded no matter what gamemode you are running.

You can also either remove the parameter completely, or specify the following:

XTASK.gamemode  = false

You may also provide the name of the gamemode you are using, even if it's not pre-programmed into the script. It must be the same value used in your server configuration when launching your server with your desired gamemode.

XTASK.gamemode  = { 'militaryrp' }
XTASK.gamemode  = { 'halorp' }
XTASK.gamemode  = { 'mycustom_gamemode' }

PreviousXTASK.familyNextXTASK.trigger

Last updated 2 years ago

🟪
🧢