getPedSimplestTask | Multi Theft Auto: Wiki Skip to content

getPedSimplestTask

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function is used to get the name of a specified ped's current simplest task.

Note

See getPedTask to get a ped's task.

Syntax

getPedSimplestTask ( )

Code Examples

client

This example prints the name of a player's simplest task to the chat, when they use the "simplestTask" command.

function showSimplestTask()
local taskName = getPedSimplestTask(localPlayer)
local playerName = getPlayerName(localPlayer)
outputChatBox(playerName.."'s simplest task is: "..taskName)
end
addCommandHandler("simplestTask", showSimplestTask)

See Also