GetHorseOwner
Whose horse it is.
Syntax
Section titled “Syntax”GetHorseOwner(id)| Parameter | Type | |
|---|---|---|
id |
number | the horse |
Returns
Section titled “Returns”number - the owner’s player id; nil = nobody’s
Example
Section titled “Example”if GetHorseOwner(horse) ~= pid then SendClientMessage(pid, COLOR_RED, "Not your horse.") endSee also
Section titled “See also”SetHorseOwner · GetPlayerHorses · the Horses group of the index
