STAT_ID_SET_DATE
Hash
0x1FAE9B2FAA2DFE06Runtime name
StatIdSetDateNamespaceSTATS
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL STAT_ID_SET_DATE(Any* statId, Any* date, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
statId | Any* | — |
date | Any* | — |
p2 | BOOL | — |
Returns BOOL
Description
statId: see STAT_ID_IS_VALID
Usage
local retval, statId, date = StatIdSetDate(p2)
-- always works, by hash
local retval, statId, date = Citizen.InvokeNative(0x1FAE9B2FAA2DFE06, Citizen.PointerValueInt(), Citizen.PointerValueInt(), p2, Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, statId, date] = StatIdSetDate(p2);
// by hash
const [retval, statId, date] = Citizen.invokeNative('0x1FAE9B2FAA2DFE06', Citizen.pointerValueInt(), Citizen.pointerValueInt(), p2, Citizen.returnResultAnyway());var statId = new OutputArgument();
var date = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x1FAE9B2FAA2DFE06, statId, date, p2);
// statId.GetResult<int>()
// date.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.