ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPedTask

Function

getPedTask

ServerPedsTrilogy Hub only

Returns the task stored in a layer by setPedTask: its name, data and the moment (in getTickCount units) it was set. Returns false when the layer is empty.

Syntax

string, any, int getPedTask(ped ped, string priority)

Arguments

pedped
A player or an NPC.
prioritystring
Layer name, e.g. "primary".

Returns

Task name, data and set time, or false.

Example

local name, data = getPedTask(guard, "primary")

See also