setBitsInRange
SET_BITS_IN_RANGE0x8EF07E15701D61EDThe GTA V native SET_BITS_IN_RANGE of the MISC namespace, as LS:MP client scripts call it: the global function setBitsInRange, in JavaScript and in Lua.
setBitsInRange(
var: number,
rangeStart: number,
rangeEnd: number,
p3: number
): numbersetBitsInRange(
var: integer,
rangeStart: integer,
rangeEnd: integer,
p3: integer
): integer✕
Blocked for scripts: Replaced by the language
This is a game-side helper your language already covers: bit operators, or number and string conversion.
Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.
Reference
- Namespace
- Misc MISC
- In the game
void SET_BITS_IN_RANGE(int* var, int rangeStart, int rangeEnd, int p3)- Hash
0x8EF07E15701D61ED