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

Function

bitLShift

Server and clientBitwise operationsIdentical to MTA:SA

Shifts bits left by the given count. Bits pushed beyond 32 are lost.

Syntax

int bitLShift(int value, int count)

Arguments

valueint
The number.
countint
Shift count.

Returns

The result.

Example

print(bitLShift(1, 4))  -- 16