PedClient1 output

addRelationshipGroup

ADD_RELATIONSHIP_GROUP0xF372BC22FCB88606

The GTA V native ADD_RELATIONSHIP_GROUP of the PED namespace, as LS:MP client scripts call it: the global function addRelationshipGroup, in JavaScript and in Lua.

SignatureJavaScript
addRelationshipGroup(name: string): [ok: boolean, groupHash: Hash]
SignatureLua
addRelationshipGroup(name: string): boolean, Hash

Usage

JavaScript
const [ok, groupHash] = addRelationshipGroup(name);
Lua
local ok, groupHash = addRelationshipGroup(name)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2groupHashHashnumberintegeroutput

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Can't select void. This function returns nothing. The hash of the created relationship group is output in the second parameter.

Reference

Namespace
Ped PED
In the game
BOOL ADD_RELATIONSHIP_GROUP(const char* name, Hash* groupHash)
Hash
0xF372BC22FCB88606

Open in the interactive natives reference