ADD_RELATIONSHIP_GROUP
The hash of the created relationship group is output in the second parameter.
Hash
0xF372BC22FCB88606Runtime name
AddRelationshipGroupNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF372BC22FCB88606Signature
BOOL ADD_RELATIONSHIP_GROUP(const char* name, Hash* groupHash);Parameters
| Name | Type | Description |
|---|---|---|
name | const char* | — |
groupHash | Hash* | — |
Returns BOOL
Description
The hash of the created relationship group is output in the second parameter.
Usage
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#
const [retval, groupHash] = AddRelationshipGroup(name, groupHash);
// by hash
const [retval, groupHash] = Citizen.invokeNative('0xF372BC22FCB88606', name, Citizen.pointerValueIntInitialized(groupHash), Citizen.returnResultAnyway());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.