Skip to content

GetEntityRider

The player in the saddle of a horse.

GetEntityRider(id)
Parameter Type
id number the entity

number - a pid; nil when nobody rides it (or it is not a horse)

local rider = GetEntityRider(horse)
if rider then SendClientMessage(rider, COLOUR_SERVER, "Nice horse.") end

GetPlayerMount · MountPlayer · GetEntityController · the World entities group of the index