taskWarpPedDirectlyIntoCover
TASK_WARP_PED_DIRECTLY_INTO_COVER0x6E01E9E8D89F8276The 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.
taskWarpPedDirectlyIntoCover(
ped: Ped,
time: number,
allowPeekingAndFiring: boolean,
forceInitialFacingDirection: boolean,
forceFaceLeft: boolean,
identifier: number
): voidtaskWarpPedDirectlyIntoCover(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
time | int | number | integer |
allowPeekingAndFiring | BOOL | boolean | boolean |
forceInitialFacingDirection | BOOL | boolean | boolean |
forceFaceLeft | BOOL | boolean | boolean |
identifier | int | number | integer |
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