STAT_ID_GET_DATE
Hash
0x8B0FACEFC36C824CRuntime name
StatIdGetDateNamespaceSTATS
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL STAT_ID_GET_DATE(Any* statId, Any* date);Parameters
| Name | Type | Description |
|---|---|---|
statId | Any* | — |
date | Any* | — |
Returns BOOL
Description
statId: see STAT_ID_IS_VALID
Usage
local retval, statId, date = StatIdGetDate()
-- always works, by hash
local retval, statId, date = Citizen.InvokeNative(0x8B0FACEFC36C824C, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, statId, date] = StatIdGetDate();
// by hash
const [retval, statId, date] = Citizen.invokeNative('0x8B0FACEFC36C824C', Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway());var statId = new OutputArgument();
var date = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x8B0FACEFC36C824C, statId, date);
// 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.