🧢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' }

Last updated