RedM Natives

CREATE_GROUP

Creates a new ped group.

Hash0x90370EBE0FEE1A3D
Runtime nameCreateGroup
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x90370EBE0FEE1A3D

Signature

int CREATE_GROUP(int taskAllocator);

Parameters

NameTypeDescription
taskAllocatorint—

Returns int

Description

Creates a new ped group.
Groups can contain up to 8 peds.

The parameter is unused.

Returns a handle to the created group, or 0 if a group couldn't be created.

Usage

Lua
local retval = CreateGroup(taskAllocator)

-- always works, by hash
local retval = Citizen.InvokeNative(0x90370EBE0FEE1A3D, taskAllocator, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CreateGroup(taskAllocator);

// by hash
const retval = Citizen.invokeNative('0x90370EBE0FEE1A3D', taskAllocator, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x90370EBE0FEE1A3D, taskAllocator);

Sources

alloc8or RDR3 NativeDB

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