Skip to content

A3D_HideRouteForPlayer

imshooter edited this page Oct 23, 2026 · 1 revision

Hide the route shown to a player.

native bool:A3D_HideRouteForPlayer(playerid);

Parameters

Parameter Description
playerid Player to hide it from.

Returns

  • true when the route was hidden.
  • false when no route is shown to the player.

Remarks

The route itself is kept and can be shown again. Destroying a route hides it from everyone it is shown to.

Example

public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp(cmdtext, "/hideroute", true) == 0) {
        A3D_HideRouteForPlayer(playerid);

        return 1;
    }

    return 0;
}

Related

  • A3D_ShowRouteForPlayer: Show a route on the radar and the map of a player as a line, which moves on as they go.
  • A3D_DestroyRoute: Destroy a route, and hide it from the players it is shown to.

Home

Guides

Reference

Functions

Creating objects
Motion
Placement
Behaviour
Display and data
Rays
Shapes
Players, vehicles and actors
Map probes
Screen
Map objects
Water
Models and surfaces
Rotations and offsets
Vehicles
Routes
Route display
Walking
Callbacks

Clone this wiki locally