RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _UPDATE_TASK_VEHICLE_SHOOT_AT_COORD

_UPDATE_TASK_VEHICLE_SHOOT_AT_COORD

Updates the target coordinate of an ongoing SCRIPT_TASK_VEHICLE_SHOOT_AT_COORD for the given ped This lets you retarget the shooting point in real time without restarting the task Has effect only while the ped’s task status for `SCRIPT_TASK_VEHICLE_SHOOT_AT_COORD` is `TASK_STATUS_ONGOING` (commonly 1) If the task hasn’t started yet (status 0 or not running), use `TASK_VEHICLE_SHOOT_AT_COORD` first; after it becomes active, call this to update the aim point Compared to `TASK_VEHICLE_SHOOT_AT_COORD`: the latter starts (or re-queues) the task with an initial target; this native *only* updates the active task’s target coordinate.

TASKBuild 1207

Signature

lua
UpdateTaskVehicleShootAtCoord(PlayerPedId(), 0.0, 0.0, 0.0)
-- returns void

Parameters

NameTypeDescription
Ped—
float—
float—
float—

Usage

lua
UpdateTaskVehicleShootAtCoord(PlayerPedId(), 0.0, 0.0, 0.0)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details