AudioClient

playPoliceReport

PLAY_POLICE_REPORT0xDFEBD56D9BD1EB16

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

SignatureJavaScript
playPoliceReport(name: string, p1: number): number
SignatureLua
playPoliceReport(name: string, p1: number): integer

Usage

JavaScript
const result = playPoliceReport(name, p1);
Lua
local result = playPoliceReport(name, p1)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring
p1floatnumbernumber

Returns

int JavaScript number, Lua integer

Notes

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

Plays the given police radio message.

All found occurrences in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/GBnsQ5hr
Full list of police report names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/policeReportNames.json

Reference

Namespace
Audio AUDIO
In the game
int PLAY_POLICE_REPORT(const char* name, float p1)
Hash
0xDFEBD56D9BD1EB16

Open in the interactive natives reference