_CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS
Creates a law dispatch response of type dispatchResponseHash at the given coordinates.
Signature
Any _CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS(float x, float y, float z, Hash dispatchResponseHash); // 0x75CBF20BA47E4F89 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | dispatchResponseHash | Hash |
Facts
| 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.
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)// 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)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
);Related LAW natives
- _REPORT_PLAYER_LAW_DISPATCH_RESPONSE_OVERRIDE
- _SET_CUSTOM_LAW_DISPATCH_RESPONSE
- _CREATE_GUARD_ZONE_FOR_ENTITY
- _ARE_LAW_PEDS_ENABLED_FOR_TRAIN
- _ENABLE_DISPATCH_LAW
- _ENABLE_DISPATCH_LAW_2
- _GET_CRIME_DISPATCH_TYPE_FOR_PLAYER
- _LAW_WITNESS_RESPONSE_TASK
- _SET_CANT_LOSE_LAW_THIS_RESPONSE
- _CREATE_GUARD_ZONE
- _ADD_WITNESS_RESPONSE
- _ARE_ANY_LAW_PEDS_INVESTIGATING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.