RedM Natives

GET_RELATIONSHIP_BETWEEN_GROUPS

Hash0x9E6B70061662AE5C
Runtime nameGetRelationshipBetweenGroups
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9E6B70061662AE5C

Signature

int GET_RELATIONSHIP_BETWEEN_GROUPS(Hash group1, Hash group2);

Parameters

NameTypeDescription
group1Hash—
group2Hash—

Returns int

Usage

Lua
local retval = GetRelationshipBetweenGroups(group1, group2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9E6B70061662AE5C, group1, group2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetRelationshipBetweenGroups(group1, group2);

// by hash
const retval = Citizen.invokeNative('0x9E6B70061662AE5C', group1, group2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x9E6B70061662AE5C, group1, group2);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

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