playPedRingtone
PLAY_PED_RINGTONE0xF9E56683CA8E11A5The 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.
playPedRingtone(ringtoneName: string, ped: Ped, p2: boolean): voidplayPedRingtone(ringtoneName: string, ped: Ped, p2: boolean)Usage
JavaScript
playPedRingtone(ringtoneName, ped, p2);Lua
playPedRingtone(ringtoneName, ped, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ringtoneName | string | string | string |
ped | Ped | number | integer |
p2 | BOOL | boolean | boolean |
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