MiscClient

setIncidentRequestedUnits

SET_INCIDENT_REQUESTED_UNITS0xB08B85D860E7BA3C

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

SignatureJavaScript
setIncidentRequestedUnits(
  incidentId: number,
  dispatchService: number,
  numUnits: number
): void
SignatureLua
setIncidentRequestedUnits(
  incidentId: integer,
  dispatchService: integer,
  numUnits: integer
)

Usage

JavaScript
setIncidentRequestedUnits(incidentId, dispatchService, numUnits);
Lua
setIncidentRequestedUnits(incidentId, dispatchService, numUnits)

Parameters

ParameterTypeJavaScriptLua
incidentIdintnumberinteger
dispatchServiceintnumberinteger
numUnitsintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Misc MISC
In the game
void SET_INCIDENT_REQUESTED_UNITS(int incidentId, int dispatchService, int numUnits)
Hash
0xB08B85D860E7BA3C

Open in the interactive natives reference