clearRelationshipBetweenGroups
CLEAR_RELATIONSHIP_BETWEEN_GROUPS0x5E29243FB56FC6D4The GTA V native CLEAR_RELATIONSHIP_BETWEEN_GROUPS of the PED namespace, as LS:MP client scripts call it: the global function clearRelationshipBetweenGroups, in JavaScript and in Lua.
clearRelationshipBetweenGroups(
relationship: number,
group1: Hash,
group2: Hash
): voidclearRelationshipBetweenGroups(
relationship: integer,
group1: Hash,
group2: Hash
)Usage
JavaScript
clearRelationshipBetweenGroups(relationship, group1, group2);Lua
clearRelationshipBetweenGroups(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.
Clears 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
(Credits: Inco)
Example:
clearRelationshipBetweenGroups(2, l_1017, 0xA49E591C);
clearRelationshipBetweenGroups(2, 0xA49E591C, l_1017);Reference
- Namespace
- Ped PED
- In the game
void CLEAR_RELATIONSHIP_BETWEEN_GROUPS(int relationship, Hash group1, Hash group2)- Hash
0x5E29243FB56FC6D4