- Documentation
- Server events
- onPlayerWaypointRemove
Event
onPlayerWaypointRemove
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)