Skip to content

GetHorseGear

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

The item classes (GUIDs) of the gear, as the owner’s game last reported it (the controller’s, for a horse nobody owns) or as SetHorseGear made it. A horse fresh from CreateHorse wears the game’s default outfit for its breed until the owner’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