_LAW_WITNESS_RESPONSE_TASK
Based on its name and signature, here is our best reading:
Appears to give ped a witness response task for the crime crimeType at the given coordinates. The group parameters are not well documented.
Signature
BOOL _LAW_WITNESS_RESPONSE_TASK(Ped pedGroup1, Ped ped, Ped pedGroup2, float x, float y, float z, Hash crimeType); // 0xF0B67BAD53C35BD9 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | pedGroup1 | Ped |
| 2 | ped | Ped |
| 3 | pedGroup2 | Ped |
| 4 | x | float |
| 5 | y | float |
| 6 | z | float |
| 7 | crimeType | Hash |
Facts
| Name | _LAW_WITNESS_RESPONSE_TASK |
|---|---|
| Hash | 0xF0B67BAD53C35BD9 |
| 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 = Citizen.InvokeNative(0xF0B67BAD53C35BD9, -- _LAW_WITNESS_RESPONSE_TASK
PlayerPedId(), -- Ped pedGroup1
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Ped pedGroup2
0.0, -- float x
0.0, -- float y
0.0, -- float z
GetHashKey("name") -- Hash crimeType
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xF0B67BAD53C35BD9", // _LAW_WITNESS_RESPONSE_TASK
PlayerPedId(), // Ped pedGroup1
PlayerPedId(), // Ped ped
PlayerPedId(), // Ped pedGroup2
0.0, // float x
0.0, // float y
0.0, // float z
GetHashKey("name"), // Hash crimeType
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xF0B67BAD53C35BD9, // _LAW_WITNESS_RESPONSE_TASK
API.PlayerPedId(), // Ped pedGroup1
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Ped pedGroup2
0.0f, // float x
0.0f, // float y
0.0f, // float z
(uint)API.GetHashKey("name") // Hash crimeType
);Related LAW natives
- _ADD_WITNESS_RESPONSE
- _CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS
- _REPORT_PLAYER_LAW_DISPATCH_RESPONSE_OVERRIDE
- _SET_CANT_LOSE_LAW_THIS_RESPONSE
- _SET_CUSTOM_LAW_DISPATCH_RESPONSE
- _ARE_ANY_LAW_PEDS_INVESTIGATING
- _ARE_LAW_PEDS_ENABLED_FOR_TRAIN
- _ENABLE_DISPATCH_LAW
- _ENABLE_DISPATCH_LAW_2
- _FORCE_LAW_ON_LOCAL_PLAYER_IMMEDIATELY
- _GET_TIME_SINCE_LAST_SEEN_BY_LAW
- _HAS_PLAYER_BEEN_FOUND_BY_LAW_ACTIVE_SEARCH
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.