bitXor | Multi Theft Auto: Wiki Skip to content

bitXor

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 XOR-conjunction (exclusive OR) on two or more (unsigned) 32-bit integers. See Bitwise operation for more details.

Syntax

uint bitXor ( uint var1, uint var2, unknown ... )
Required Arguments
  • var1: MISSING_PARAM_DESC
  • var2: MISSING_PARAM_DESC
  • ...: MISSING_PARAM_DESC

Returns

  • uint: value

Returns the conjuncted value.

Code Examples

shared

This example will do a bitwise XOR of x1, x2, ...

local x1 = 0x14 -- binary: 0001 0100
local x2 = 0x1C -- binary: 0001 1100
bitXor(x1, x2) -- return 0000 1000