bitOr | Multi Theft Auto: Wiki Skip to content

bitOr

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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

bitOr ( )

Code Examples

server

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