The Lab
PLAYER native

_SET_PED_ACTIVE_PLAYER_HORSE

returns void2 paramsbuild 1207

Sets horse as the active horse of player.

Signature

C
void _SET_PED_ACTIVE_PLAYER_HORSE(Player player, Ped horse); // 0x8FBF9EDB378CCB8C b1207

Parameters

#NameType
1playerPlayer
2horsePed

Facts

Facts about _SET_PED_ACTIVE_PLAYER_HORSE
Name
_SET_PED_ACTIVE_PLAYER_HORSE
Hash
0x8FBF9EDB378CCB8C
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x8FBF9EDB378CCB8C, -- _SET_PED_ACTIVE_PLAYER_HORSE
  PlayerId(), -- Player player
  PlayerPedId() -- Ped horse
)
JavaScript
Citizen.invokeNative("0x8FBF9EDB378CCB8C", // _SET_PED_ACTIVE_PLAYER_HORSE
  PlayerId(), // Player player
  PlayerPedId() // Ped horse
);
C#
Function.Call((Hash)0x8FBF9EDB378CCB8C, // _SET_PED_ACTIVE_PLAYER_HORSE
  API.PlayerId(), // Player player
  API.PlayerPedId() // Ped horse
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.