bitNot | Multi Theft Auto: Wiki Skip to content

bitNot

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function performs a bitwise NOT on an (unsigned) 32-bit integer. See Bitwise operation for more details.

Syntax

uint bitNot ( uint var )
Required Arguments
  • var: The value you want to perform a bitwise NOT on

Returns

  • uint: value

Returns the value on which the operation has been performed.

Code Examples

shared

--In this example we make a command which you can do a bitNot operator

function bitnot(thePlayer,cmd,value)
outputChatBox(bitNot(value),thePlayer)
end
addCommandHandler("bitnot",bitnotFunc)