The Lab
LAW native

_SET_PED_LAW_BEHAVIOUR

returns void2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Sets a law behaviour mode on ped; the possible values of behaviour are not well documented.

Signature

C
void _SET_PED_LAW_BEHAVIOUR(Ped ped, int behaviour); // 0x819ADD5EF1742F47 b1207

Parameters

#NameType
1pedPed
2behaviourint

Facts

Facts about _SET_PED_LAW_BEHAVIOUR
Name
_SET_PED_LAW_BEHAVIOUR
Hash
0x819ADD5EF1742F47
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(0x819ADD5EF1742F47, -- _SET_PED_LAW_BEHAVIOUR
  PlayerPedId(), -- Ped ped
  0 -- int behaviour
)
JavaScript
Citizen.invokeNative("0x819ADD5EF1742F47", // _SET_PED_LAW_BEHAVIOUR
  PlayerPedId(), // Ped ped
  0 // int behaviour
);
C#
Function.Call((Hash)0x819ADD5EF1742F47, // _SET_PED_LAW_BEHAVIOUR
  API.PlayerPedId(), // Ped ped
  0 // int behaviour
);
All LAW natives

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