TasksClient

taskPutPedDirectlyIntoCover

TASK_PUT_PED_DIRECTLY_INTO_COVER0x4172393E6BE1FECE

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

SignatureJavaScript
taskPutPedDirectlyIntoCover(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  time: number,
  allowPeekingAndFiring: boolean,
  blendInDuration: number,
  forceInitialFacingDirection: boolean,
  forceFaceLeft: boolean,
  identifier: number,
  doEntry: boolean
): void
SignatureLua
taskPutPedDirectlyIntoCover(
  ped: Ped,
  x: number,
  y: number,
  z: number,
  time: integer,
  allowPeekingAndFiring: boolean,
  blendInDuration: number,
  forceInitialFacingDirection: boolean,
  forceFaceLeft: boolean,
  identifier: integer,
  doEntry: boolean
)

Usage

JavaScript
taskPutPedDirectlyIntoCover(
  ped, x, y, z, time, allowPeekingAndFiring, blendInDuration, forceInitialFacingDirection,
  forceFaceLeft, identifier, doEntry
);
Lua
taskPutPedDirectlyIntoCover(
    ped, x, y, z, time, allowPeekingAndFiring, blendInDuration, forceInitialFacingDirection,
    forceFaceLeft, identifier, doEntry
)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
taskPutPedDirectlyIntoCover(
  ped, pos, time, allowPeekingAndFiring, blendInDuration, forceInitialFacingDirection,
  forceFaceLeft, identifier, doEntry
);
Lua · with vectors
taskPutPedDirectlyIntoCover(
    ped, pos, time, allowPeekingAndFiring, blendInDuration, forceInitialFacingDirection,
    forceFaceLeft, identifier, doEntry
)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
timeintnumberinteger
allowPeekingAndFiringBOOLbooleanboolean
blendInDurationfloatnumbernumber
forceInitialFacingDirectionBOOLbooleanboolean
forceFaceLeftBOOLbooleanboolean
identifierintnumberinteger
doEntryBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_PUT_PED_DIRECTLY_INTO_COVER(Ped ped, float x, float y, float z, int time, BOOL allowPeekingAndFiring, float blendInDuration, BOOL forceInitialFacingDirection, BOOL forceFaceLeft, int identifier, BOOL doEntry)
Hash
0x4172393E6BE1FECE

Open in the interactive natives reference