The Lab
LAW native

_LAW_WITNESS_RESPONSE_TASK

returns BOOL7 paramsbuild 1207

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

C
BOOL _LAW_WITNESS_RESPONSE_TASK(Ped pedGroup1, Ped ped, Ped pedGroup2, float x, float y, float z, Hash crimeType); // 0xF0B67BAD53C35BD9 b1207

Parameters

#NameType
1pedGroup1Ped
2pedPed
3pedGroup2Ped
4xfloat
5yfloat
6zfloat
7crimeTypeHash

Facts

Facts about _LAW_WITNESS_RESPONSE_TASK
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.

Lua
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
JavaScript
// 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) {
  // ...
}
C#
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
);
All LAW natives

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