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

Function

bitRRotate

Server and clientBitwise operationsIdentical to MTA:SA

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

Syntax

int bitRRotate(int value, int count)

Arguments

valueint
The number.
countint
Rotation count.

Returns

The result.

Example

print(string.format("%08X", bitRRotate(3, 1)))  -- 80000001