STAT_ID_GET_BOOL
Reads the boolean stat referenced by statId into value. Returns true if the read succeeded.
Signature
BOOL STAT_ID_GET_BOOL(Any* statId, BOOL* value); // 0x11B5E6D2AE73F48F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | statId | Any* (out pointer) |
| 2 | value | BOOL* (out pointer) |
Facts
| Name | STAT_ID_GET_BOOL |
|---|---|
| Hash | 0x11B5E6D2AE73F48F |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, statId, value = Citizen.InvokeNative(0x11B5E6D2AE73F48F, -- STAT_ID_GET_BOOL
Citizen.PointerValueInt(), -- Any* statId
Citizen.PointerValueInt(), -- BOOL* value
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, statId, value] = Citizen.invokeNative("0x11B5E6D2AE73F48F", // STAT_ID_GET_BOOL
Citizen.pointerValueInt(), // Any* statId
Citizen.pointerValueInt(), // BOOL* value
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var statIdArg = new OutputArgument();
var valueArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x11B5E6D2AE73F48F, // STAT_ID_GET_BOOL
statIdArg, // Any* statId
valueArg // BOOL* value
);
int statId = statIdArg.GetResult<int>();
bool value = valueArg.GetResult<bool>();Related STATS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.