GetPlayerMount
The horse the player rides right now.
Syntax
Section titled “Syntax”GetPlayerMount(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - the horse’s entity id; nil on foot
Example
Section titled “Example”if GetPlayerMount(pid) then SendClientMessage(pid, COLOUR_RED, "Not from the saddle.") return true endSee also
Section titled “See also”GetPlayerHorse · MountPlayer · GetEntityRider · the Horses group of the index
