Game codeUnofficial name
LAW::_ARE_LAW_PEDS_ENABLED_FOR_TRAIN
0x9CA6B8E35DD3B90E ·RVA 0x03E82C50
Signature
BOOL _ARE_LAW_PEDS_ENABLED_FOR_TRAIN(Ped p0);
The scripts pass 2 values to this native; the decoded signature lists 1 (arguments the game doesn't read are left out).
Parameters 1
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | p0 |
– |
Returns
BOOL
the game returns one byte.
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p0 is not in RDR3's signature; the game reads it as a 16-byte value, and the game uses it as an entity handle, and the scripts pass Ped values.
Call it
// LAW::_ARE_LAW_PEDS_ENABLED_FOR_TRAIN
auto result = invoke<BOOL>(0x9CA6B8E35DD3B90E, p0);// LAW::_ARE_LAW_PEDS_ENABLED_FOR_TRAIN
bool result = Function.Call<bool>((Hash)0x9CA6B8E35DD3B90E, p0);-- LAW::_ARE_LAW_PEDS_ENABLED_FOR_TRAIN
local result = Citizen.InvokeNative(0x9CA6B8E35DD3B90E, p0)// LAW::_ARE_LAW_PEDS_ENABLED_FOR_TRAIN
const result = Citizen.invokeNative("0x9CA6B8E35DD3B90E", p0);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.