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

Player::getScriptTaskStatus

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

Gets the status of a script-assigned task. The hash does not seem to match the actual native name, but is assigned hardcoded from the executable during task creation.

Statuses are specific to tasks, in addition '7' means the specified task is not assigned to the player.

A few hashes found in the executable (although not a complete list) can be found at pastebin.com/R9iK6M9W as it was too long for this wiki.

Syntax

<syntaxhighlight lang="javascript">player.getScriptTaskStatus(taskHash);</syntaxhighlight>

Required Arguments

  • taskHash: Model hash or name

Return value

  • int

Example

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

See also