Gameplay::isBitSet

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

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

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

Required Arguments

  • address: int
  • offset: int

Return value

  • Boolean

Example

// todo

See also