Log In
Sign Up
Game codeUnofficial name

VEHICLE::_GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX

0x60660F2A720A095E ·RVA 0x04A82370

Signature

Hash64 _GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX(
    Hash trainConfig,
    int trainCarIndex
);

Parameters 2

#TypeNameNotes
0HashtrainConfig –
1inttrainCarIndex –

Returns

Hash64

RDR3 says Hash; the game writes a Hash64.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:

Call it

// VEHICLE::_GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX
auto result = invoke<Hash64>(0x60660F2A720A095E, trainConfig, trainCarIndex);

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.