RedM Natives

SET_PED_AS_GROUP_MEMBER

Adds a ped to a ped group. In RDR3 it is also what keeps a second player seated behind another player on a horse.

Hash0x9F3480FE65DB31B5
Runtime nameSetPedAsGroupMember
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9F3480FE65DB31B5

Signature

void SET_PED_AS_GROUP_MEMBER(Ped ped, int groupId);

Parameters

NameTypeDescription
pedPed

Ped to add.

groupIdint

Target group, e.g. GET_PLAYER_GROUP(PlayerId()).

Returns void

Verified notes

Reviewed in this portal's repository · by borderline-rp

Two players on one horse

A player who climbs onto another player's horse as passenger is dismounted after about 3 seconds, with a clean dismount animation (no ragdoll, no buck, no change of network owner). Spawn flags, mount ownership (SET_PLAYER_OWNS_MOUNT), SET_ANIMAL_IS_WILD and PLAYER↔PLAYER relationships make no difference.

The cause is RDR's companion rule: the passenger must be in the rider's ped group. Ped groups are local, so add each other on both clients:

-- on every client, for the other player's ped that shares your mount
SetPedAsGroupMember(otherPed, GetPlayerGroup(PlayerId()))

-- when they get off
RemovePedFromGroup(otherPed)

Wagons and carts do not need this. There is no SET_PED_NEVER_LEAVES_GROUP in RDR3.

Verified in game on the Borderline RP server, September 2026.

Usage

Lua
SetPedAsGroupMember(ped, groupId)

-- always works, by hash
Citizen.InvokeNative(0x9F3480FE65DB31B5, ped, groupId)
JavaScript and C#
JavaScript
SetPedAsGroupMember(ped, groupId);

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

See also

Sources

alloc8or RDR3 NativeDB · RedM Natives (verified notes)

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