Gameplay::getRandomEventFlag: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 April 2024

  • curprev 09:0509:05, 29 April 2024Shr0x talk contribs 539 bytes +539 Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks if the player is currently on a random event. ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getRandomEventFlag(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const flag = mp.game.gameplay.getRandomEventFlag(); mp.console.logInfo(`Player ${flag ? 'is' : 'is not'} in a random event.`); </syntaxhighlight> }} ==See also== {{Gameplay_defin..."