STAT_ID_SET_INT
Sets the integer stat referenced by statId to value. Returns true on success.
Signature
BOOL STAT_ID_SET_INT(Any* statId, int value, BOOL p2); // 0xA4DDF5DF95E65EEE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | statId | Any* (out pointer) |
| 2 | value | int |
| 3 | p2 | BOOL |
Facts
| Name | STAT_ID_SET_INT |
|---|---|
| Hash | 0xA4DDF5DF95E65EEE |
| 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 = Citizen.InvokeNative(0xA4DDF5DF95E65EEE, -- STAT_ID_SET_INT
Citizen.PointerValueInt(), -- Any* statId
0, -- int value
false, -- BOOL p2
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, statId] = Citizen.invokeNative("0xA4DDF5DF95E65EEE", // STAT_ID_SET_INT
Citizen.pointerValueInt(), // Any* statId
0, // int value
false, // BOOL p2
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var statIdArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xA4DDF5DF95E65EEE, // STAT_ID_SET_INT
statIdArg, // Any* statId
0, // int value
false // BOOL p2
);
int statId = statIdArg.GetResult<int>();Related STATS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.