TasksClient

taskStayInCover

TASK_STAY_IN_COVER0xE5DA8615A6180789

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

SignatureJavaScript
taskStayInCover(ped: Ped): void
SignatureLua
taskStayInCover(ped: Ped)

Usage

JavaScript
taskStayInCover(ped);
Lua
taskStayInCover(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Makes the ped run to take cover

Reference

Namespace
Tasks TASK
In the game
void TASK_STAY_IN_COVER(Ped ped)
Hash
0xE5DA8615A6180789

Open in the interactive natives reference