CREATE_INCIDENT
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
BOOL CREATE_INCIDENT(int dispatchService, float x, float y, float z, int numUnits, float radius, int* outIncidentID, Any p7, Any p8); // 0x3F892CAF67444AE7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | dispatchService | int |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | numUnits | int |
| 6 | radius | float |
| 7 | outIncidentID | int* (out pointer) |
| 8 | p7 | Any |
| 9 | p8 | Any |
Facts
| 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.
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// 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) {
// ...
}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>();Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.