Skip to content

OnPlayerMount

The player is in the saddle of a horse.

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

nothing

function OnPlayerMount(pid, id)
SetEntityData(id, "last_rider", pid)
end

OnPlayerDismount · MountPlayer · GetPlayerMount · the Horses group of the index