GetEntityRider
The player in the saddle of a horse.
Syntax
Section titled “Syntax”GetEntityRider(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”number - a pid; nil when nobody rides it (or it is not a horse)
Example
Section titled “Example”local rider = GetEntityRider(horse)if rider then SendClientMessage(rider, COLOUR_SERVER, "Nice horse.") endSee also
Section titled “See also”GetPlayerMount · MountPlayer · GetEntityController · the World entities group of the index
