SET_RELATIONSHIP_BETWEEN_GROUPS
Sets the relationship level (companion, respect, like, neutral, dislike or hate) that group1 has towards group2.
Call it in both directions for a mutual relationship.
Signature
void SET_RELATIONSHIP_BETWEEN_GROUPS(int relationship, Hash group1, Hash group2); // 0xBF25EB89375A37AD b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | relationship | int |
| 2 | group1 | Hash |
| 3 | group2 | Hash |
Facts
| Name | SET_RELATIONSHIP_BETWEEN_GROUPS |
|---|---|
| Hash | 0xBF25EB89375A37AD |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xBF25EB89375A37AD, -- SET_RELATIONSHIP_BETWEEN_GROUPS
0, -- int relationship
GetHashKey("name"), -- Hash group1
GetHashKey("name") -- Hash group2
)Citizen.invokeNative("0xBF25EB89375A37AD", // SET_RELATIONSHIP_BETWEEN_GROUPS
0, // int relationship
GetHashKey("name"), // Hash group1
GetHashKey("name") // Hash group2
);Function.Call((Hash)0xBF25EB89375A37AD, // SET_RELATIONSHIP_BETWEEN_GROUPS
0, // int relationship
(uint)API.GetHashKey("name"), // Hash group1
(uint)API.GetHashKey("name") // Hash group2
);Related PED natives
- CLEAR_RELATIONSHIP_BETWEEN_GROUPS
- GET_RELATIONSHIP_BETWEEN_GROUPS
- SET_PED_RELATIONSHIP_GROUP_DEFAULT_HASH
- SET_PED_RELATIONSHIP_GROUP_HASH
- _SET_RELATIONSHIP_GROUP_SCRIPT_REGISTERED
- GET_RELATIONSHIP_BETWEEN_PEDS
- SET_RAGDOLL_BLOCKING_FLAGS
- SET_AI_MELEE_WEAPON_DAMAGE_MODIFIER
- SET_AI_WEAPON_DAMAGE_MODIFIER
- SET_BLOCKING_OF_NON_TEMPORARY_EVENTS
- SET_BLOCKING_OF_NON_TEMPORARY_EVENTS_FOR_AMBIENT_PEDS_THIS_FRAME
- SET_COMBAT_FLOAT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.