Skip to content

A3D_GetPlayerRoute

imshooter edited this page Oct 23, 2026 · 1 revision

The route shown to a player.

native Route:A3D_GetPlayerRoute(playerid);

Parameters

Parameter Description
playerid Player to check.

Returns

  • The route.
  • INVALID_ROUTE_ID when no route is shown to the player.

Remarks

The route may belong to another script. A route stays shown after the player arrives, until a script hides or destroys it.

Example

stock bool:IsFollowingRoute(playerid) {
    return A3D_GetPlayerRoute(playerid) != INVALID_ROUTE_ID;
}

Related

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