RedM Natives

TASK_GO_TO_WHISTLE

WHISTLE_MAIN, WHISTLE_SECONDARY, WHISTLE_DOUBLE, WHISTLE_URGENT, WHISTLE_LONG

Hash0xBAD6545608CECA6E
Runtime nameTaskGoToWhistle
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_GO_TO_WHISTLE(Ped ped, Ped p1, int whistleType);

Parameters

NameTypeDescription
pedPed—
p1Ped—
whistleTypeint—

Returns void

Description

enum eWhistleType
{
	WHISTLE_MAIN,
	WHISTLE_SECONDARY,
	WHISTLE_DOUBLE,
	WHISTLE_URGENT,
	WHISTLE_LONG
};

Usage

Lua
TaskGoToWhistle(ped, p1, whistleType)

-- always works, by hash
Citizen.InvokeNative(0xBAD6545608CECA6E, ped, p1, whistleType)
JavaScript and C#
JavaScript
TaskGoToWhistle(ped, p1, whistleType);

// by hash
Citizen.invokeNative('0xBAD6545608CECA6E', ped, p1, whistleType);
C#
Function.Call((Hash)0xBAD6545608CECA6E, ped, p1, whistleType);

Sources

alloc8or RDR3 NativeDB

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