- Documentation
- Client functions
- setPlayerMapWaypointEnabled
Function
setPlayerMapWaypointEnabled
Turns setting the GPS target with a right click on the map on or off. Turning it off is useful on a location picker screen: the right click still arrives in onClientPlayerMapClick, but the GPS stays unchanged.
Syntax
bool setPlayerMapWaypointEnabled(bool enabled)Arguments
enabledbooltrue= a right click sets the GPS target (default).
Returns
true on success.
Example
setPlayerMapWaypointEnabled(false)
See also
isPlayerMapWaypointEnabledChecks whether a right click on the map sets the GPS target.onClientPlayerMapClickThe player clicked the open map. The left button arrives on release, only if the map was not dragged; the right button arrives straight away. World coordinates are already converted from the map view.