TaskWarpPedDirectlyIntoCover — FiveM Natives
0x6E01E9E8D89F8276 · TASK · all
This task warps a ped directly into a cover position closest to the specified point. This can be used to quickly place peds in strategic positions during gameplay. `` NativeDB Introduced: 2545 ``
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped to warp into cover. |
| time | int | Duration in milliseconds the ped should take to enter the cover. |
| canPeekAndAim | BOOL | If `true`, allows the ped to peek and aim while in cover. |
| forceInitialFacingDirection | BOOL | If `true`, forces the ped to face the initial direction when entering cover. |
| forceFaceLeft | BOOL | If `true`, forces the ped to face left relative to the cover position. |
| coverIndex | int | The index of the cover point to warp the ped to. If `null`, the game will choose the nearest cover point. |
Returns
void