RedM Natives

_SET_PED_LAW_BEHAVIOUR

Hash0x819ADD5EF1742F47
Runtime nameSetPedLawBehaviour
NamespaceLAW
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PED_LAW_BEHAVIOUR(Ped ped, int behaviour);

Parameters

NameTypeDescription
pedPed—
behaviourint—

Returns void

Description

behaviour: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CLawBehavior__Flags

Usage

Lua
SetPedLawBehaviour(ped, behaviour)

-- always works, by hash
Citizen.InvokeNative(0x819ADD5EF1742F47, ped, behaviour)
JavaScript and C#
JavaScript
SetPedLawBehaviour(ped, behaviour);

// by hash
Citizen.invokeNative('0x819ADD5EF1742F47', ped, behaviour);
C#
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 InvokeNative with the hash — it always works.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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