Перейти к содержанию

Stats::statSetDate

Материал из RAGE MP Wiki Archive
Версия от 21:31, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

'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

<syntaxhighlight lang="javascript">mp.game.stats.statSetDate(statName, value, numFields, save);</syntaxhighlight>

Required Arguments

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

Return value

  • Boolean

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also