Skip to content

A3D_IsValidRoute

imshooter edited this page Oct 23, 2026 · 1 revision

Whether a route exists.

native bool:A3D_IsValidRoute(Route:routeid);

Parameters

Parameter Description
Route:routeid Route to check.

Remarks

A route is valid from the moment it is found until it is destroyed, or until the script that found it unloads. The id of a destroyed route may be given to the next route, so an id is only worth checking while the script still holds it.

Example

stock bool:ShowIfValid(playerid, Route:routeid) {
    if (!A3D_IsValidRoute(routeid)) {
        return false;
    }

    return A3D_ShowRouteForPlayer(playerid, routeid);
}

Related

  • A3D_FindRoute: Find the best route between two points along the paths of the game.
  • 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