Gameplay::isBitSet

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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

Template:Gameplay s function c