Перейти к содержанию

Gameplay::setMissionFlag

Материал из RAGE MP Wiki Archive
Версия от 10:00, 22 июля 2024; imported>Shr0x (See also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

If true, the player can't save the game.


MulleDK19: If the parameter is true, sets the mission flag to true, if the parameter is false, the function does nothing at all.

^ also, if the mission flag is already set, the function does nothing at all

Syntax

<syntaxhighlight lang="javascript">mp.game.gameplay.setMissionFlag(toggle);</syntaxhighlight>

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also