RedM Natives

SET_LAW_RESPONSE_DELAY_OVERRIDE

Hash0xD2DFC9CCA5596A11
Runtime nameSetLawResponseDelayOverride
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB45EFF719D8427A6

Signature

void SET_LAW_RESPONSE_DELAY_OVERRIDE(float p0);

Parameters

NameTypeDescription
p0float—

Returns void

Usage

Lua
SetLawResponseDelayOverride(p0)

-- always works, by hash
Citizen.InvokeNative(0xD2DFC9CCA5596A11, p0)
JavaScript and C#
JavaScript
SetLawResponseDelayOverride(p0);

// by hash
Citizen.invokeNative('0xD2DFC9CCA5596A11', p0 + 0.0000001);
C#
Function.Call((Hash)0xD2DFC9CCA5596A11, p0);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.