Skip to content

GetHorseCoat

The coat a horse wears.

The coat SetHorseCoat or CreateHorse gave it, else the pick it shows now - either way the name to save, so the horse comes back the same colour.

GetHorseCoat(id)
Parameter Type
id number the horse

string | nil - one of GetHorseCoats; nil when it is not a horse

-- the stable keeps the coat with the horse
db:Execute("UPDATE stable SET coat = ? WHERE id = ?", {GetHorseCoat(horse), GetEntityData(horse, "stable_id")})
-- ... and gives it back when the horse is taken out
local horse = CreateHorse(x, y, z, yaw, pid, nil, row.soul, row.coat)

SetHorseCoat · GetHorseCoats · GetHorseStats · the Horses group of the index