Skip to content

OnPlayerDismount

The player got off the horse - or left while riding, or the horse was destroyed.

function OnPlayerDismount(pid, id)
-- ...
end
Parameter Type
pid number the player
id number the horse

nothing

function OnPlayerDismount(pid, id)
Log(GetPlayerName(pid), "dismounted horse", id)
end

OnPlayerMount · the Horses group of the index