RedM Natives

_ARE_LAW_PEDS_ENABLED_FOR_TRAIN

Only used in trainrobbery_ambient R* Script

Hash0xA22C46F16359471C
Runtime nameAreLawPedsEnabledForTrain
NamespaceLAW
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _ARE_LAW_PEDS_ENABLED_FOR_TRAIN();

Returns BOOL

Description

Only used in trainrobbery_ambient R* Script

Usage

Lua
local retval = AreLawPedsEnabledForTrain()

-- always works, by hash
local retval = Citizen.InvokeNative(0xA22C46F16359471C, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = AreLawPedsEnabledForTrain();

// by hash
const retval = Citizen.invokeNative('0xA22C46F16359471C', Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xA22C46F16359471C);
  • 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.

Sources

alloc8or RDR3 NativeDB

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