- Documentation
- Client events
- onClientWaypointSet
Event
onClientWaypointSet
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)