Gameplay::clearBit

From RAGE Multiplayer Wiki
Revision as of 10:04, 22 July 2024 by Shr0x (talk | contribs) (→‎See also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

mp.game.gameplay.clearBit(address, offset);

Required Arguments

  • address: int
  • offset: int

Return value

  • int

Example

// todo

See also