Stats::statSetDate: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
'value' is a structure to a structure, 'numFields' is how many fields there are in said structure (usually 7).<br><br>The structure looks like this:<br><br>int year<br>int month<br>int day<br>int hour<br>int minute<br>int second<br>int millisecond<br><br>The decompiled scripts use TIME::GET_POSIX_TIME to fill this structure.
'value' is a structure to a structure, 'numFields' is how many fields there are in said structure (usually 7).<br><br>The structure looks like this:<br><br>int year<br>int month<br>int day<br>int hour<br>int minute<br>int second<br>int millisecond<br><br>The decompiled scripts use TIME::GET_POSIX_TIME to fill this structure.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">stats.statSetDate(statName, value, numFields, save);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.stats.statSetDate(statName, value, numFields, save);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''statName:''' Model hash or name
*'''statName:''' Model hash or name
Line 11: Line 11:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Stats_function_c}}
{{Stats_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:31, 6 May 2017

'value' is a structure to a structure, 'numFields' is how many fields there are in said structure (usually 7).

The structure looks like this:

int year
int month
int day
int hour
int minute
int second
int millisecond

The decompiled scripts use TIME::GET_POSIX_TIME to fill this structure.

Syntax

mp.game.stats.statSetDate(statName, value, numFields, save);

Required Arguments

  • statName: Model hash or name
  • value: unknown (to be checked)
  • numFields: int
  • save: Boolean

Return value

  • Boolean

Example

// todo

See also