ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientWaypointSet

Event

onClientWaypointSet

ClientWorldTrilogy Hub only

The local player has a new game GPS waypoint: from the map ("map") or from a script ("script").

Handler

addEventHandler("onClientWaypointSet", root, function(x, y, how) ... end)

Parameters

xfloat
X.
yfloat
Y.
howstring
"map" or "script".

Source

source is the local player.

Example

addEventHandler("onClientWaypointSet", localPlayer, function(x, y)
    outputChatBox(("Jedziesz do %.0f, %.0f"):format(x, y))
end)

See also