OnPlayerMount
The player is in the saddle of a horse.
Syntax
Section titled “Syntax”function OnPlayerMount(pid, id) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number | the horse |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerMount(pid, id) SetEntityData(id, "last_rider", pid)endSee also
Section titled “See also”OnPlayerDismount · MountPlayer · GetPlayerMount · the Horses group of the index
