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.
Syntax
Section titled “Syntax”GetHorseCoat(id)| Parameter | Type | |
|---|---|---|
id |
number | the horse |
Returns
Section titled “Returns”string | nil - one of GetHorseCoats; nil when it is not a horse
Example
Section titled “Example”-- the stable keeps the coat with the horsedb:Execute("UPDATE stable SET coat = ? WHERE id = ?", {GetHorseCoat(horse), GetEntityData(horse, "stable_id")})-- ... and gives it back when the horse is taken outlocal horse = CreateHorse(x, y, z, yaw, pid, nil, row.soul, row.coat)See also
Section titled “See also”SetHorseCoat · GetHorseCoats · GetHorseStats · the Horses group of the index
