_CREATE_INCIDENT_WITH_ENTITIES
Creates a dispatch incident for dispatchService at the given coordinates involving the entities in itemSet, writing its id to outIncidentID. Returns true on success.
Signature
BOOL _CREATE_INCIDENT_WITH_ENTITIES(int dispatchService, float x, float y, float z, ItemSet itemSet, float radius, int* outIncidentID); // 0xAB3D3F45436DB1D8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | dispatchService | int |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | itemSet | ItemSet |
| 6 | radius | float |
| 7 | outIncidentID | int* (out pointer) |
Facts
| Name | _CREATE_INCIDENT_WITH_ENTITIES |
|---|---|
| Hash | 0xAB3D3F45436DB1D8 |
| 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(0xAB3D3F45436DB1D8, -- _CREATE_INCIDENT_WITH_ENTITIES
0, -- int dispatchService
0.0, -- float x
0.0, -- float y
0.0, -- float z
0, -- ItemSet itemSet
0.0, -- float radius
Citizen.PointerValueInt(), -- int* outIncidentID
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("0xAB3D3F45436DB1D8", // _CREATE_INCIDENT_WITH_ENTITIES
0, // int dispatchService
0.0, // float x
0.0, // float y
0.0, // float z
0, // ItemSet itemSet
0.0, // float radius
Citizen.pointerValueInt(), // int* outIncidentID
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var outIncidentIDArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xAB3D3F45436DB1D8, // _CREATE_INCIDENT_WITH_ENTITIES
0, // int dispatchService
0.0f, // float x
0.0f, // float y
0.0f, // float z
0, // ItemSet itemSet
0.0f, // float radius
outIncidentIDArg // int* outIncidentID
);
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.