GetPlayerSimplestTask

From Multi Theft Auto: Wiki
Revision as of 22:43, 17 October 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function is used to get the name of a specified players current simplest task.

Syntax

string getPlayerSimplestTask ( player thePlayer )

Required Arguments

  • thePlayer: The player whose task you want to retrieve.

Returns

Returns a string representing the name of the player's simplest, active task.

Example

This example prints the name of a players simplest task to the chat, when they use the "simplest_task" command

addCommandHandler ( "simplest_task", "simplest_task" )
function task ( source, key )
  task = getPlayerSimplestTask ( source )
  outputChatBox ( getClientName ( source ) .. "'s simplest task is: " .. task )
end    

See Also