Built-inClient

shiftLeft

SHIFT_LEFT0xEDD95A39E5544DE8

The GTA V native SHIFT_LEFT of the BUILTIN namespace, as LS:MP client scripts call it: the global function shiftLeft, in JavaScript and in Lua.

SignatureJavaScript
shiftLeft(value: number, bitShift: number): number
SignatureLua
shiftLeft(value: integer, bitShift: integer): integer

Usage

JavaScript
const result = shiftLeft(value, bitShift);
Lua
local result = shiftLeft(value, bitShift)

Parameters

ParameterTypeJavaScriptLua
valueintnumberinteger
bitShiftintnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Built-in BUILTIN
In the game
int SHIFT_LEFT(int value, int bitShift)
Hash
0xEDD95A39E5544DE8

Open in the interactive natives reference