ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onPlayerWaypointRemove

Event

onPlayerWaypointRemove

ServerPlayersTrilogy Hub only

A player's GPS waypoint disappeared: removed on the map, by a script or the player reached it.

Handler

addEventHandler("onPlayerWaypointRemove", root, function(how) ... end)

Parameters

howstring
"map", "script" or "reached".

Source

source is the player.

Example

addEventHandler("onPlayerWaypointRemove", root, function(how)
    if how == "reached" then givePlayerMoney(source, 50) end
end)

See also