setRelationshipBetweenGroups
SET_RELATIONSHIP_BETWEEN_GROUPS0xBF25EB89375A37ADThe GTA V native SET_RELATIONSHIP_BETWEEN_GROUPS of the PED namespace, as LS:MP client scripts call it: the global function setRelationshipBetweenGroups, in JavaScript and in Lua.
setRelationshipBetweenGroups(
relationship: number,
group1: Hash,
group2: Hash
): voidsetRelationshipBetweenGroups(
relationship: integer,
group1: Hash,
group2: Hash
)Usage
JavaScript
setRelationshipBetweenGroups(relationship, group1, group2);Lua
setRelationshipBetweenGroups(relationship, group1, group2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
relationship | int | number | integer |
group1 | Hash | number | integer |
group2 | Hash | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Sets 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:
setRelationshipBetweenGroups(2, l_1017, 0xA49E591C);
setRelationshipBetweenGroups(2, 0xA49E591C, l_1017);Reference
- Namespace
- Ped PED
- In the game
void SET_RELATIONSHIP_BETWEEN_GROUPS(int relationship, Hash group1, Hash group2)- Hash
0xBF25EB89375A37AD