RedM Natives

TASK_WHISTLE_ANIM

Hash0xD6401A1B2F63BED6
Runtime nameTaskWhistleAnim
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_WHISTLE_ANIM(Ped ped, Hash audPedWhistleType, Hash p2);

Parameters

NameTypeDescription
pedPed—
audPedWhistleTypeHash—
p2Hash—

Returns void

Description

https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/aud_ped_whistle_types.lua
p2: UNSPECIFIED

Usage

Lua
TaskWhistleAnim(ped, audPedWhistleType, p2)

-- always works, by hash
Citizen.InvokeNative(0xD6401A1B2F63BED6, ped, audPedWhistleType, p2)
JavaScript and C#
JavaScript
TaskWhistleAnim(ped, audPedWhistleType, p2);

// by hash
Citizen.invokeNative('0xD6401A1B2F63BED6', ped, audPedWhistleType, p2);
C#
Function.Call((Hash)0xD6401A1B2F63BED6, ped, audPedWhistleType, p2);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.