taskPutPedDirectlyIntoCover
TASK_PUT_PED_DIRECTLY_INTO_COVER0x4172393E6BE1FECEThe 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.
taskPutPedDirectlyIntoCover(
ped: Ped,
x: number,
y: number,
z: number,
time: number,
allowPeekingAndFiring: boolean,
blendInDuration: number,
forceInitialFacingDirection: boolean,
forceFaceLeft: boolean,
identifier: number,
doEntry: boolean
): voidtaskPutPedDirectlyIntoCover(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
time | int | number | integer |
allowPeekingAndFiring | BOOL | boolean | boolean |
blendInDuration | float | number | number |
forceInitialFacingDirection | BOOL | boolean | boolean |
forceFaceLeft | BOOL | boolean | boolean |
identifier | int | number | integer |
doEntry | BOOL | boolean | boolean |
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