deleteIncident
DELETE_INCIDENT0x556C1AA270D5A207The 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.
deleteIncident(incidentId: number): voiddeleteIncident(incidentId: integer)Usage
JavaScript
deleteIncident(incidentId);Lua
deleteIncident(incidentId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
incidentId | int | number | integer |
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