ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. bitNot

Function

bitNot

Server and clientBitwise operationsIdentical to MTA:SA

Bitwise NOT of a 32-bit number.

Syntax

int bitNot(int a)

Arguments

aint
The number.

Returns

The result.

Example

print(bitNot(0))                -- 4294967295
print(bitAnd(13, bitNot(4)))    -- 9: usuwa bit 4 / clears bit 4