Skip to content

GetHorseGear

What a horse wears - its saddle, bridle, saddlebags and caparison.

The item classes (GUIDs) of the gear, as the game of the player who holds the horse’s bags (the owner, else the rider, else the one who simulates it) last reported it, or as SetHorseGear made it. A horse fresh from CreateHorse wears the game’s default outfit for its breed until that player’s game reports it.

GetHorseGear(id)
Parameter Type
id number the horse

table - a list of item class GUIDs ({} = nothing); nil when it is not a horse

for _, class in ipairs(GetHorseGear(horse) or {}) do
local info = GetItemInfo(class)
SendClientMessage(pid, COLOR_WHITE, info and info.display or class)
end

SetHorseGear · GetHorseItems · the Horses group of the index