The Lab
MISC native

CREATE_INCIDENT

returns BOOL9 paramsbuild 1207

Creates a dispatch incident for dispatchService at the given coordinates with numUnits units within radius, writing its id to outIncidentID. Returns true on success.

Remove it with DELETE_INCIDENT.

Signature

C
BOOL CREATE_INCIDENT(int dispatchService, float x, float y, float z, int numUnits, float radius, int* outIncidentID, Any p7, Any p8); // 0x3F892CAF67444AE7 b1207

Parameters

#NameType
1dispatchServiceint
2xfloat
3yfloat
4zfloat
5numUnitsint
6radiusfloat
7outIncidentIDint* (out pointer)
8p7Any
9p8Any

Facts

Facts about CREATE_INCIDENT
Name
CREATE_INCIDENT
Hash
0x3F892CAF67444AE7
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, outIncidentID = Citizen.InvokeNative(0x3F892CAF67444AE7, -- CREATE_INCIDENT
  0, -- int dispatchService
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0, -- int numUnits
  0.0, -- float radius
  Citizen.PointerValueInt(), -- int* outIncidentID
  0, -- Any p7
  0, -- Any p8
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const [result, outIncidentID] = Citizen.invokeNative("0x3F892CAF67444AE7", // CREATE_INCIDENT
  0, // int dispatchService
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0, // int numUnits
  0.0, // float radius
  Citizen.pointerValueInt(), // int* outIncidentID
  0, // Any p7
  0, // Any p8
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outIncidentIDArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x3F892CAF67444AE7, // CREATE_INCIDENT
  0, // int dispatchService
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0, // int numUnits
  0.0f, // float radius
  outIncidentIDArg, // int* outIncidentID
  0, // Any p7
  0 // Any p8
);
int outIncidentID = outIncidentIDArg.GetResult<int>();
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.