The Lab
LAW native

_SET_LAW_REGION

returns void3 paramsbuild 1207

Sets the law region lawRegionHash and state stateHash that apply to player.

Signature

C
void _SET_LAW_REGION(Player player, Hash lawRegionHash, Hash stateHash); // 0x4752F68EB7F2D280 b1207

Parameters

#NameType
1playerPlayer
2lawRegionHashHash
3stateHashHash

Facts

Facts about _SET_LAW_REGION
Name
_SET_LAW_REGION
Hash
0x4752F68EB7F2D280
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x4752F68EB7F2D280, -- _SET_LAW_REGION
  PlayerId(), -- Player player
  GetHashKey("name"), -- Hash lawRegionHash
  GetHashKey("name") -- Hash stateHash
)
JavaScript
Citizen.invokeNative("0x4752F68EB7F2D280", // _SET_LAW_REGION
  PlayerId(), // Player player
  GetHashKey("name"), // Hash lawRegionHash
  GetHashKey("name") // Hash stateHash
);
C#
Function.Call((Hash)0x4752F68EB7F2D280, // _SET_LAW_REGION
  API.PlayerId(), // Player player
  (uint)API.GetHashKey("name"), // Hash lawRegionHash
  (uint)API.GetHashKey("name") // Hash stateHash
);
All LAW natives

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