OnPlayerDismount
The player got off the horse - or left while riding, or the horse was destroyed.
Syntax
Section titled “Syntax”function OnPlayerDismount(pid, id) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number | the horse |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerDismount(pid, id) Log(GetPlayerName(pid), "dismounted horse", id)endSee also
Section titled “See also”OnPlayerMount · the Horses group of the index
