_SET_PED_LAW_BEHAVIOUR
Hash
0x819ADD5EF1742F47Runtime name
SetPedLawBehaviourNamespaceLAW
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_PED_LAW_BEHAVIOUR(Ped ped, int behaviour);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
behaviour | int | — |
Returns void
Description
behaviour: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CLawBehavior__Flags
Usage
SetPedLawBehaviour(ped, behaviour)
-- always works, by hash
Citizen.InvokeNative(0x819ADD5EF1742F47, ped, behaviour)JavaScript and C#
SetPedLawBehaviour(ped, behaviour);
// by hash
Citizen.invokeNative('0x819ADD5EF1742F47', ped, behaviour);Function.Call((Hash)0x819ADD5EF1742F47, ped, behaviour);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Enums and flags
- CLawBehavior__Flags 18 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.