TasksClient

taskSeekCoverFromPed

TASK_SEEK_COVER_FROM_PED0x84D32B3BEC531324

The GTA V native TASK_SEEK_COVER_FROM_PED of the TASK namespace, as LS:MP client scripts call it: the global function taskSeekCoverFromPed, in JavaScript and in Lua.

SignatureJavaScript
taskSeekCoverFromPed(
  ped: Ped,
  target: Ped,
  duration: number,
  allowPeekingAndFiring: boolean
): void
SignatureLua
taskSeekCoverFromPed(
  ped: Ped,
  target: Ped,
  duration: integer,
  allowPeekingAndFiring: boolean
)

Usage

JavaScript
taskSeekCoverFromPed(ped, target, duration, allowPeekingAndFiring);
Lua
taskSeekCoverFromPed(ped, target, duration, allowPeekingAndFiring)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
targetPednumberinteger
durationintnumberinteger
allowPeekingAndFiringBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_SEEK_COVER_FROM_PED(Ped ped, Ped target, int duration, BOOL allowPeekingAndFiring)
Hash
0x84D32B3BEC531324

Open in the interactive natives reference