GET_BITS_IN_RANGE
Returns the value stored in the bits of var from rangeStart to rangeEnd.
Signature
int GET_BITS_IN_RANGE(int var, int rangeStart, int rangeEnd); // 0x68E1352AF48F905D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | var | int |
| 2 | rangeStart | int |
| 3 | rangeEnd | int |
Facts
| Name | GET_BITS_IN_RANGE |
|---|---|
| Hash | 0x68E1352AF48F905D |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x68E1352AF48F905D, -- GET_BITS_IN_RANGE
0, -- int var
0, -- int rangeStart
0, -- int rangeEnd
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x68E1352AF48F905D", // GET_BITS_IN_RANGE
0, // int var
0, // int rangeStart
0, // int rangeEnd
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x68E1352AF48F905D, // GET_BITS_IN_RANGE
0, // int var
0, // int rangeStart
0 // int rangeEnd
);Related MISC natives
- GET_RANDOM_FLOAT_IN_RANGE
- GET_RANDOM_INT_IN_RANGE
- SET_BITS_IN_RANGE
- GET_SCRIPT_TIME_WITHIN_FRAME_IN_MICROSECONDS
- _GET_NUMBER_OF_BULLETS_IN_AREA
- GET_BENCHMARK_ITERATIONS
- GET_BENCHMARK_PASS
- GET_ANGLE_BETWEEN_2D_VECTORS
- GET_CLOSEST_POINT_ON_LINE
- GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
- GET_CURR_WEATHER_STATE
- GET_DISTANCE_BETWEEN_COORDS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.