getRandomMwcIntInRange
GET_RANDOM_MWC_INT_IN_RANGE0xF2D49816A804D134The GTA V native GET_RANDOM_MWC_INT_IN_RANGE of the MISC namespace, as LS:MP client scripts call it: the global function getRandomMwcIntInRange, in JavaScript and in Lua.
getRandomMwcIntInRange(startRange: number, endRange: number): numbergetRandomMwcIntInRange(startRange: integer, endRange: integer): integerUsage
JavaScript
const result = getRandomMwcIntInRange(startRange, endRange);Lua
local result = getRandomMwcIntInRange(startRange, endRange)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
startRange | int | number | integer |
endRange | int | number | integer |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Misc MISC
- In the game
int GET_RANDOM_MWC_INT_IN_RANGE(int startRange, int endRange)- Hash
0xF2D49816A804D134- Introduced
- Game build 1734 legacy numbering
- Formerly
_GET_RANDOM_INT_IN_RANGE_2