The Lab
LAW native

_ARE_LAW_PEDS_ENABLED_FOR_TRAIN

returns BOOL0 paramsbuild 1207

Returns true if law peds are allowed to respond on trains.

Signature

C
BOOL _ARE_LAW_PEDS_ENABLED_FOR_TRAIN(); // 0xA22C46F16359471C b1207

Parameters

This native takes no parameters.

Facts

Facts about _ARE_LAW_PEDS_ENABLED_FOR_TRAIN
Name
_ARE_LAW_PEDS_ENABLED_FOR_TRAIN
Hash
0xA22C46F16359471C
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xA22C46F16359471C) -- _ARE_LAW_PEDS_ENABLED_FOR_TRAIN
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xA22C46F16359471C", // _ARE_LAW_PEDS_ENABLED_FOR_TRAIN
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xA22C46F16359471C); // _ARE_LAW_PEDS_ENABLED_FOR_TRAIN
All LAW natives

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