- Documentation
- Shared functions
- removePlayerWaypoint
Function
removePlayerWaypoint
Removes the player's GPS waypoint.
Syntax
Server
bool removePlayerWaypoint(player thePlayer)Client
bool removePlayerWaypoint()Arguments
thePlayerplayer- The player (server only).
Returns
On the server false if it knew of no waypoint for the player.
Example
addEventHandler("onPlayerWasted", root, function()
removePlayerWaypoint(source)
end)
See also
getPlayerWaypointReturns the player's GPS waypoint, the target they marked on the map or a script set. On the server it is the last point confirmed by the player's game.setPlayerWaypointSets the game's GPS waypoint for a player: a target on the radar and map, and a road route while in a vehicle. The game confirms it withonPlayerWaypointSet.