SET_BLOCK_OF_PLAYER_BITS
Based on its name and signature, here is our best reading:
Writes a block of bits into the player bitset value; the meaning of p1 and p2 is not well documented.
Signature
void SET_BLOCK_OF_PLAYER_BITS(Any* value, int p1, int p2); // 0xC6DFB8C04C86D5A5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | value | Any* (out pointer) |
| 2 | p1 | int |
| 3 | p2 | int |
Facts
| Name | SET_BLOCK_OF_PLAYER_BITS |
|---|---|
| Hash | 0xC6DFB8C04C86D5A5 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local value = Citizen.InvokeNative(0xC6DFB8C04C86D5A5, -- SET_BLOCK_OF_PLAYER_BITS
Citizen.PointerValueInt(), -- Any* value
0, -- int p1
0 -- int p2
)
print(value)const value = Citizen.invokeNative("0xC6DFB8C04C86D5A5", // SET_BLOCK_OF_PLAYER_BITS
Citizen.pointerValueInt(), // Any* value
0, // int p1
0 // int p2
);
console.log(value)var valueArg = new OutputArgument();
Function.Call((Hash)0xC6DFB8C04C86D5A5, // SET_BLOCK_OF_PLAYER_BITS
valueArg, // Any* value
0, // int p1
0 // int p2
);
int value = valueArg.GetResult<int>();Related SCRIPT natives
- GET_BLOCK_OF_PLAYER_BITS
- _SET_ALL_PLAYER_BITS
- _CLEAR_ALL_PLAYER_BITS
- _IS_ANY_PLAYER_BIT_SET
- _IS_PLAYER_BIT_SET_AT_INDEX
- _SET_GLOBAL_BLOCK_CAN_BE_ACCESSED
- _SET_PLAYER_BIT_AT_INDEX
- COUNT_PLAYER_BITS
- SET_EVENT_FLAG_FOR_DELETION
- SET_NO_LOADING_SCREEN
- SET_SCRIPT_AS_NO_LONGER_NEEDED
- SET_SCRIPT_WITH_NAME_HASH_AS_NO_LONGER_NEEDED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.