The Lab
LAW native

_CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS

returns Any4 paramsbuild 1207

Creates a law dispatch response of type dispatchResponseHash at the given coordinates.

Signature

C
Any _CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS(float x, float y, float z, Hash dispatchResponseHash); // 0x75CBF20BA47E4F89 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4dispatchResponseHashHash

Facts

Facts about _CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS
Name
_CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS
Hash
0x75CBF20BA47E4F89
Namespace
Returns
Any
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(0x75CBF20BA47E4F89, -- _CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  GetHashKey("name"), -- Hash dispatchResponseHash
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x75CBF20BA47E4F89", // _CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS
  0.0, // float x
  0.0, // float y
  0.0, // float z
  GetHashKey("name"), // Hash dispatchResponseHash
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x75CBF20BA47E4F89, // _CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  (uint)API.GetHashKey("name") // Hash dispatchResponseHash
);
All LAW natives

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