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

Gameplay::isBitSet

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

Returns bit's boolean state from [offset] of [address].

Example:
GAMEPLAY::IS_BIT_SET(bitAddress, 1);

To enable and disable bits, see:
GAMEPLAY::SET_BIT(&bitAddress, 1); // enable
GAMEPLAY::CLEAR_BIT(&bitAddress, 1); // disable

Syntax

<syntaxhighlight lang="javascript">mp.game.gameplay.isBitSet(address, offset);</syntaxhighlight>

Required Arguments

  • address: int
  • offset: int

Return value

  • Boolean

Example

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

See also