RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_PED_SPECIFIC_TASK_TYPE

GET_PED_SPECIFIC_TASK_TYPE

Gets the type of a ped's specific task given an index of the CPedTaskSpecificDataNode nodes. A ped will typically have a task at index 0, if a ped has multiple tasks at once they will be in the order 0, 1, 2, etc.

CFX

Signature

lua
GetPedSpecificTaskType(PlayerPedId(), 0)
-- returns int

Parameters

NameTypeDescription
PedThe target ped.
intA zero-based index with a maximum value of 7.

Usage

lua
GetPedSpecificTaskType(PlayerPedId(), 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