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

Function

bitLRotate

Server and clientBitwise operationsIdentical to MTA:SA

Rotates bits left: bits leaving on the left come back on the right.

Syntax

int bitLRotate(int value, int count)

Arguments

valueint
The number.
countint
Rotation count.

Returns

The result.

Example

print(string.format("%08X", bitLRotate(0x80000001, 1)))  -- 00000003