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

Gameplay::clearBit

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

This sets bit [offset] of [address] to off.

Example:
GAMEPLAY::CLEAR_BIT(&bitAddress, 1);

To check if this bit has been enabled:
GAMEPLAY::IS_BIT_SET(bitAddress, 1); // will return 0 afterwards

Syntax

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

Required Arguments

  • address: int
  • offset: int

Return value

  • int

Example

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

See also