GetPlayerHorses
Every horse in the world the player owns.
Syntax
Section titled “Syntax”GetPlayerHorses(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”table - a list of horse entity ids ({} for none)
Example
Section titled “Example”-- a stable: every horse of theirs but the one they ride goes away (saved by the mode, made again on the way out)for _, id in ipairs(GetPlayerHorses(pid)) do if id ~= GetPlayerMount(pid) then DestroyEntity(id) endendSee also
Section titled “See also”SetHorseOwner · GetHorseOwner · GetPlayerHorse · the Horses group of the index
