bitOr | Multi Theft Auto: Wiki Skip to content

bitOr

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

Syntax

uint bitOr ( 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 OR of x1, x2, ...

local x1 = 0x31 -- binary: 0011 0001
local x2 = 0x19 -- binary: 0001 1001
bitOr(x1, x2) -- return 0011 1001