addRelationshipGroup
ADD_RELATIONSHIP_GROUP0xF372BC22FCB88606The 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.
addRelationshipGroup(name: string): [ok: boolean, groupHash: Hash]addRelationshipGroup(name: string): boolean, HashUsage
JavaScript
const [ok, groupHash] = addRelationshipGroup(name);Lua
local ok, groupHash = addRelationshipGroup(name)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
name | string | string | string |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | groupHash | Hash | number | integer | output |
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