playPoliceReport
PLAY_POLICE_REPORT0xDFEBD56D9BD1EB16The 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.
playPoliceReport(name: string, p1: number): numberplayPoliceReport(name: string, p1: number): integerUsage
JavaScript
const result = playPoliceReport(name, p1);Lua
local result = playPoliceReport(name, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
name | string | string | string |
p1 | float | number | number |
Returns
int JavaScript number, Lua integerNotes
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