Skip to content

GetPlayerLoadHorse

The horse a player lies across.

GetPlayerLoadHorse(pid)
Parameter Type
pid number the player

number - the horse’s entity id; nil when the player lies across none

local horse = GetPlayerLoadHorse(pid)
if horse then return false end -- no teleport while across a horse

GetHorseLoad · GetEntityLoadHorse · IsPlayerCarried · the Carrying group of the index