AudioClient

playPedRingtone

PLAY_PED_RINGTONE0xF9E56683CA8E11A5

The GTA V native PLAY_PED_RINGTONE of the AUDIO namespace, as LS:MP client scripts call it: the global function playPedRingtone, in JavaScript and in Lua.

SignatureJavaScript
playPedRingtone(ringtoneName: string, ped: Ped, p2: boolean): void
SignatureLua
playPedRingtone(ringtoneName: string, ped: Ped, p2: boolean)

Usage

JavaScript
playPedRingtone(ringtoneName, ped, p2);
Lua
playPedRingtone(ringtoneName, ped, p2)

Parameters

ParameterTypeJavaScriptLua
ringtoneNamestringstringstring
pedPednumberinteger
p2BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

All found occurrences in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/RFb4GTny

playPedRingtone("Remote_Ring", playerPedId(), 1);
playPedRingtone("Dial_and_Remote_Ring", playerPedId(), 1);

Reference

Namespace
Audio AUDIO
In the game
void PLAY_PED_RINGTONE(const char* ringtoneName, Ped ped, BOOL p2)
Hash
0xF9E56683CA8E11A5

Open in the interactive natives reference