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

Function

bitArShift

Server and clientBitwise operationsIdentical to MTA:SA

Arithmetic right shift: keeps the highest bit (the sign of a 32-bit number).

Syntax

int bitArShift(int value, int count)

Arguments

valueint
The number.
countint
Shift count.

Returns

The result as unsigned 32 bits.

Example

print(string.format("%08X", bitArShift(0x80000000, 4)))  -- F8000000