The Lab
PED native

ADD_RELATIONSHIP_GROUP

returns BOOL2 paramsbuild 1207

Creates a relationship group named name and writes its hash to groupHash, returning true on success.

Then set how it relates to others with SET_RELATIONSHIP_BETWEEN_GROUPS.

Signature

C
BOOL ADD_RELATIONSHIP_GROUP(const char* name, Hash* groupHash); // 0xF372BC22FCB88606 b1207

Parameters

#NameType
1nameconst char*
2groupHashHash* (out pointer)

Facts

Facts about ADD_RELATIONSHIP_GROUP
Name
ADD_RELATIONSHIP_GROUP
Hash
0xF372BC22FCB88606
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, groupHash = Citizen.InvokeNative(0xF372BC22FCB88606, -- ADD_RELATIONSHIP_GROUP
  "text", -- const char* name
  Citizen.PointerValueInt(), -- Hash* groupHash
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, groupHash] = Citizen.invokeNative("0xF372BC22FCB88606", // ADD_RELATIONSHIP_GROUP
  "text", // const char* name
  Citizen.pointerValueInt(), // Hash* groupHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var groupHashArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xF372BC22FCB88606, // ADD_RELATIONSHIP_GROUP
  "text", // const char* name
  groupHashArg // Hash* groupHash
);
int groupHash = groupHashArg.GetResult<int>();
All PED natives

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