Перейти к содержанию

Ped::getRelationshipBetweenGroups

Материал из RAGE MP Wiki Archive
Версия от 21:29, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Gets the relationship between two groups. This should be called twice (once for each group).

Relationship types:
0 = Companion
1 = Respect
2 = Like
3 = Neutral
4 = Dislike
5 = Hate
255 = Pedestrians

Example:
PED::GET_RELATIONSHIP_BETWEEN_GROUPS(l_1017, 0xA49E591C);
PED::GET_RELATIONSHIP_BETWEEN_GROUPS(0xA49E591C, l_1017);

Syntax

<syntaxhighlight lang="javascript">mp.game.ped.getRelationshipBetweenGroups(group1, group2);</syntaxhighlight>

Required Arguments

  • group1: Model hash or name
  • group2: Model hash or name

Return value

  • int

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also