RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. TASK_GO_STRAIGHT_TO_COORD

TASK_GO_STRAIGHT_TO_COORD

TASK_GO_STRAIGHT_TO_COORD **This is the server-side RPC native equivalent of the client native [TASK_GO_STRAIGHT_TO_COORD](?\_0xD76B57B44F1E6F8B).**

CFX

Signature

lua
TaskGoStraightToCoord(PlayerPedId(), 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0)
-- returns void

Parameters

NameTypeDescription
PedThe ped handle.
floatThe x coordinate.
floatThe y coordinate.
floatThe z coordinate.
floatThe ped movement speed.
int\-1 , other values appear to break the ped movement.
floatThe heading you want the ped to be on x,y,z coord.
floatThe distance from x,y,z where the ped will start sliding.

Usage

lua
TaskGoStraightToCoord(PlayerPedId(), 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0)

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

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details