TasksClient

taskWarpPedDirectlyIntoCover

TASK_WARP_PED_DIRECTLY_INTO_COVER0x6E01E9E8D89F8276

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

SignatureJavaScript
taskWarpPedDirectlyIntoCover(
  ped: Ped,
  time: number,
  allowPeekingAndFiring: boolean,
  forceInitialFacingDirection: boolean,
  forceFaceLeft: boolean,
  identifier: number
): void
SignatureLua
taskWarpPedDirectlyIntoCover(
  ped: Ped,
  time: integer,
  allowPeekingAndFiring: boolean,
  forceInitialFacingDirection: boolean,
  forceFaceLeft: boolean,
  identifier: integer
)

Usage

JavaScript
taskWarpPedDirectlyIntoCover(
  ped, time, allowPeekingAndFiring, forceInitialFacingDirection, forceFaceLeft, identifier
);
Lua
taskWarpPedDirectlyIntoCover(
    ped, time, allowPeekingAndFiring, forceInitialFacingDirection, forceFaceLeft, identifier
)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
timeintnumberinteger
allowPeekingAndFiringBOOLbooleanboolean
forceInitialFacingDirectionBOOLbooleanboolean
forceFaceLeftBOOLbooleanboolean
identifierintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_WARP_PED_DIRECTLY_INTO_COVER(Ped ped, int time, BOOL allowPeekingAndFiring, BOOL forceInitialFacingDirection, BOOL forceFaceLeft, int identifier)
Hash
0x6E01E9E8D89F8276
Introduced
Game build 2545 legacy numbering

Open in the interactive natives reference