RedM Natives

SET_PED_AS_GROUP_LEADER

Hash0x2A7819605465FBCE
Runtime nameSetPedAsGroupLeader
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2A7819605465FBCE

Signature

void SET_PED_AS_GROUP_LEADER(Ped ped, int groupId, BOOL p2);

Parameters

NameTypeDescription
pedPed—
groupIdint—
p2BOOL—

Returns void

Usage

Lua
SetPedAsGroupLeader(ped, groupId, p2)

-- always works, by hash
Citizen.InvokeNative(0x2A7819605465FBCE, ped, groupId, p2)
JavaScript and C#
JavaScript
SetPedAsGroupLeader(ped, groupId, p2);

// by hash
Citizen.invokeNative('0x2A7819605465FBCE', ped, groupId, p2);
C#
Function.Call((Hash)0x2A7819605465FBCE, ped, groupId, p2);

See also

Sources

alloc8or RDR3 NativeDB

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