Log In
Sign Up
Game codeUnofficial name

POPULATION::_ADD_AMBIENT_AVOIDANCE_RESTRICTION

0x6B1BD1794A92BE59 ·RVA 0x044FBCE0

Signature

void _ADD_AMBIENT_AVOIDANCE_RESTRICTION(
    Volume volume,
    int includeFlags,
    int excludeFlags,
    Hash p3,
    Hash p4,
    Hash p5,
    int p6,
    Any p7
);

Parameters 8

#TypeNameNotes
0Volumevolume –
1intincludeFlags –
2intexcludeFlags –
3Hashp3 –
4Hashp4 –
5Hashp5 –
6intp6 –
7Anyp7 the game doesn't read it.

Returns

void Nothing.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:
  • p7 is not in RDR3's signature; the game reads it as nothing (it is ignored), and the game doesn't read it.
  • This lines up with RDR3's signature in more than one way; it takes the one that keeps RDR3's arguments first and puts the new ones after them.

Call it

// POPULATION::_ADD_AMBIENT_AVOIDANCE_RESTRICTION
invoke<Void>(0x6B1BD1794A92BE59, volume, includeFlags, excludeFlags, p3, p4, p5, p6, p7);

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.