GET_RANDOM_INT_IN_RANGE
Hash
0xD53343AA4FB7DD28Runtime name
GetRandomIntInRangeNamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD53343AA4FB7DD28Signature
int GET_RANDOM_INT_IN_RANGE(int startRange, int endRange);Parameters
| Name | Type | Description |
|---|---|---|
startRange | int | — |
endRange | int | — |
Returns int
Usage
local retval = GetRandomIntInRange(startRange, endRange)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD53343AA4FB7DD28, startRange, endRange, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetRandomIntInRange(startRange, endRange);
// by hash
const retval = Citizen.invokeNative('0xD53343AA4FB7DD28', startRange, endRange, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xD53343AA4FB7DD28, startRange, endRange);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.