{"hash":"0x9F3480FE65DB31B5","ns":"PED","name":"SET_PED_AS_GROUP_MEMBER","slug":"SET_PED_AS_GROUP_MEMBER","official":true,"named":true,"luaName":"SetPedAsGroupMember","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped","description":"Ped to add."},{"name":"groupId","type":"int","description":"Target group, e.g. GET_PLAYER_GROUP(PlayerId())."}],"summary":"Adds a ped to a ped group. In RDR3 it is also what keeps a second player seated behind another player on a horse.","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":["0xED74007FFB146BC2","0x9BAB31815159ABCF","0x51455483CF23ED97"],"build":"1207","gtaHash":"0x9F3480FE65DB31B5","gtaJhash":"0x0EE13F92","sources":["alloc8or","overlay"],"doc":3,"overlayFile":"overlay/natives/0x9F3480FE65DB31B5.md","noteMeta":{"contributors":["borderline-rp"],"tags":["horse","group","multiplayer"]},"notes":"### Two players on one horse\n\nA 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.\n\nThe 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:\n\n```lua\n-- on every client, for the other player's ped that shares your mount\nSetPedAsGroupMember(otherPed, GetPlayerGroup(PlayerId()))\n\n-- when they get off\nRemovePedFromGroup(otherPed)\n```\n\nWagons and carts do not need this. There is no `SET_PED_NEVER_LEAVES_GROUP` in RDR3.\n\nVerified in game on the Borderline RP server, September 2026.","url":"https://natives.borderlinerp.com/natives/PED/SET_PED_AS_GROUP_MEMBER","markdownUrl":"https://natives.borderlinerp.com/natives/PED/SET_PED_AS_GROUP_MEMBER.md","snippets":{"lua":"SetPedAsGroupMember(ped, groupId)","luaInvoke":"Citizen.InvokeNative(0x9F3480FE65DB31B5, ped, groupId)","js":"SetPedAsGroupMember(ped, groupId);","jsInvoke":"Citizen.invokeNative('0x9F3480FE65DB31B5', ped, groupId);","csharp":"Function.Call((Hash)0x9F3480FE65DB31B5, ped, groupId);","notes":[]}}