SET_BITS_IN_RANGE
Writes the value p3 into the bits of var from rangeStart to rangeEnd.
Signature
void SET_BITS_IN_RANGE(int* var, int rangeStart, int rangeEnd, int p3); // 0x324DC1CEF57F31E6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | var | int* (out pointer) |
| 2 | rangeStart | int |
| 3 | rangeEnd | int |
| 4 | p3 | int |
Facts
| Name | SET_BITS_IN_RANGE |
|---|---|
| Hash | 0x324DC1CEF57F31E6 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local varOut = Citizen.InvokeNative(0x324DC1CEF57F31E6, -- SET_BITS_IN_RANGE
Citizen.PointerValueInt(), -- int* var
0, -- int rangeStart
0, -- int rangeEnd
0 -- int p3
)
print(varOut)const varOut = Citizen.invokeNative("0x324DC1CEF57F31E6", // SET_BITS_IN_RANGE
Citizen.pointerValueInt(), // int* var
0, // int rangeStart
0, // int rangeEnd
0 // int p3
);
console.log(varOut)var varOutArg = new OutputArgument();
Function.Call((Hash)0x324DC1CEF57F31E6, // SET_BITS_IN_RANGE
varOutArg, // int* var
0, // int rangeStart
0, // int rangeEnd
0 // int p3
);
int varOut = varOutArg.GetResult<int>();Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.