RedM Natives

ADD_RELATIONSHIP_GROUP

The hash of the created relationship group is output in the second parameter.

Hash0xF372BC22FCB88606
Runtime nameAddRelationshipGroup
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF372BC22FCB88606

Signature

BOOL ADD_RELATIONSHIP_GROUP(const char* name, Hash* groupHash);

Parameters

NameTypeDescription
nameconst char*—
groupHashHash*—

Returns BOOL

Description

The hash of the created relationship group is output in the second parameter.

Usage

Lua
local retval, groupHash = AddRelationshipGroup(name, groupHash)

-- always works, by hash
local retval, groupHash = Citizen.InvokeNative(0xF372BC22FCB88606, name, Citizen.PointerValueIntInitialized(groupHash), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, groupHash] = AddRelationshipGroup(name, groupHash);

// by hash
const [retval, groupHash] = Citizen.invokeNative('0xF372BC22FCB88606', name, Citizen.pointerValueIntInitialized(groupHash), Citizen.returnResultAnyway());
C#
var groupHash = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xF372BC22FCB88606, name, groupHash);
// groupHash.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.