PedClient

doesGroupExist

DOES_GROUP_EXIST0x7C6B0C22F9F40BBE

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

SignatureJavaScript
doesGroupExist(groupId: number): boolean
SignatureLua
doesGroupExist(groupId: integer): boolean

Usage

JavaScript
const result = doesGroupExist(groupId);
Lua
local result = doesGroupExist(groupId)

Parameters

ParameterTypeJavaScriptLua
groupIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL DOES_GROUP_EXIST(int groupId)
Hash
0x7C6B0C22F9F40BBE

Open in the interactive natives reference