> For the complete documentation index, see [llms.txt](https://r1scripts.gitbook.io/rb-triangulation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://r1scripts.gitbook.io/rb-triangulation/export.md).

# Export

### TrackPhone

Tracks a player through their phone number. The player must be online and have a phone.

* phonenumber: `string`&#x20;
* time: `number` (seconds) (optional)
* <mark style="background-color:yellow;">return:</mark> `boolean`

```lua
local track = TrackPhone("0123456789", 30)
print(track)

-- Returns true if the function was able to track.
```

### TrackPhoneContinuously

Tracks a player through their phone number. The player must be online and have a phone.\
Continuously tracking based on the delay.<br>

* phonenumber: `string`
* time: `number` (seconds) (optional)
* delay: `number` (seconds) (optional)
* <mark style="background-color:yellow;">return:</mark> `boolean`

```lua
local track = TrackPhoneContinuously("0123456789", 30, 1)
print(track)

-- Returns true if the function was able to track.
```

### CancelTracking

Instantly cancels any ongoing tracking.

```lua
CancelTracking()
```

### GetClosestMastToPed

Returns the closest mast to the player ped.<br>

* <mark style="background-color:yellow;">return:</mark> `key,distance`  &#x20;

```lua
local key, distance = GetClosestMastToPed()
local mast = mastData[key]
```

### GetClosestMastToCoords

Returns the closest mast to coordinates.<br>

* coords: `vec3`
* <mark style="background-color:yellow;">return:</mark> `key,distance`  &#x20;

```lua
local key, distance = GetClosestMastToPed(coords)
local mast = mastData[key]
```

### GetPlayersInPlayerMastCoverage

Returns the citizen IDs of all players within the same mast coverage as the player ped.<br>

* <mark style="background-color:yellow;">return:</mark> `table`  &#x20;

```lua
local players = GetPlayersInPlayerMastCoverage()

if players and next(players) then
    for _, cid in pairs(players) do
        print(cid)
    end
end
```
