MiscClient

deleteIncident

DELETE_INCIDENT0x556C1AA270D5A207

The GTA V native DELETE_INCIDENT of the MISC namespace, as LS:MP client scripts call it: the global function deleteIncident, in JavaScript and in Lua.

SignatureJavaScript
deleteIncident(incidentId: number): void
SignatureLua
deleteIncident(incidentId: integer)

Usage

JavaScript
deleteIncident(incidentId);
Lua
deleteIncident(incidentId)

Parameters

ParameterTypeJavaScriptLua
incidentIdintnumberinteger

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.

Delete an incident with a given id.


Correction, I have change this to int, instead of int*
as it doesn't use a pointer to the createdIncident.
If you try it you will crash (or) freeze.

Reference

Namespace
Misc MISC
In the game
void DELETE_INCIDENT(int incidentId)
Hash
0x556C1AA270D5A207

Open in the interactive natives reference