The Lab
PED native

SET_RELATIONSHIP_BETWEEN_GROUPS

returns void3 paramsbuild 1207

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

C
void SET_RELATIONSHIP_BETWEEN_GROUPS(int relationship, Hash group1, Hash group2); // 0xBF25EB89375A37AD b1207

Parameters

#NameType
1relationshipint
2group1Hash
3group2Hash

Facts

Facts about SET_RELATIONSHIP_BETWEEN_GROUPS
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.

Lua
Citizen.InvokeNative(0xBF25EB89375A37AD, -- SET_RELATIONSHIP_BETWEEN_GROUPS
  0, -- int relationship
  GetHashKey("name"), -- Hash group1
  GetHashKey("name") -- Hash group2
)
JavaScript
Citizen.invokeNative("0xBF25EB89375A37AD", // SET_RELATIONSHIP_BETWEEN_GROUPS
  0, // int relationship
  GetHashKey("name"), // Hash group1
  GetHashKey("name") // Hash group2
);
C#
Function.Call((Hash)0xBF25EB89375A37AD, // SET_RELATIONSHIP_BETWEEN_GROUPS
  0, // int relationship
  (uint)API.GetHashKey("name"), // Hash group1
  (uint)API.GetHashKey("name") // Hash group2
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.