> For the complete documentation index, see [llms.txt](https://ruxo.gitbook.io/ruxo-shop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ruxo.gitbook.io/ruxo-shop/fivem-scripts/tracker-system.md).

# Tracker System

{% embed url="<https://www.youtube.com/watch?v=kbyI61W4IJo>" %}
Video Preview Tracker System
{% endembed %}

This script is available both escrow version and source open&#x20;

{% hint style="success" %}
Buy at: [Ruxo Shop - Tracker System](https://ruxo-shop.tebex.io/package/5876275)
{% endhint %}

## Dependencies

* ESX

## Jobs Allowed

You can manage what jobs can use the tracker

````lua
```lua
Config.AuthorizedJobShare = {
    ['police'] = true,
    ['sheriff'] = false,
    ['fbi'] = false,
    ['army'] = false
}
```
````

## Range

You can set how much rage an anklet will have, in config you will find the maximum range:

```lua
Config.Maximumboundary = 5000.0
```

## Commands

You can use `/tracker` command to open the tracker system with one of the allowed jobs in config

<figure><img src="/files/udT9jONeELCtO3TjoDyj" alt=""><figcaption><p>Tracker System</p></figcaption></figure>

## Phone Tracker

You can decide how much time the blip to track phones will persist on game map, this is done for game purpose (sometimes this feature can be OP for police) and for performance.

In this case 5 is 25 seconds: (Current: 5 \* 5000 = 25 seconds)

```lua

Config.Cont = 5 --Duration for phone traker map blips (Current: 5 * 5000 = 25 seconds)

```

## Animations

You can disable all animations from config

```lua
Config.RpEmotes = true
```

{% hint style="info" %}
If you enable RpEmotes option, you need a script for animations
{% endhint %}

{% tabs %}
{% tab title="Rp Emotes" %}
If you have RpEmotes you can leave the exports like this

you can change the "tablet" animation with any other animation

```lua
-- Animation
Config.EmoteTablet = function() -- You can change here events for animation
    exports["rpemotes"]:EmoteCommandStart("tablet", nil)
end

Config.EmoteReset = function() -- You can change here events for animation
    exports["rpemotes"]:EmoteCancel()
end
```

{% endtab %}

{% tab title="Other" %}
If you have a different script for animations just change the exports

```lua
-- Animation
Config.EmoteTablet = function() -- You can change here events for animation
    exports["Your Export"]:??
end

Config.EmoteReset = function() -- You can change here events for animation
    exports["Your Export"]:??
end
```

{% endtab %}
{% endtabs %}

#### Blips Appearance

In config you can edit blips type, color, and scale

```lua
Config.TargetBlipInformations = {
    Sprite = 459,
    Color = 2,
    Scale = 1.4,
    Display = 2
}

Config.CarTargetBlipInformations = {
    Sprite = 645,
    Color = 2,
    Scale = 1.4,
    Display = 2
}
```

## Logs

You can log when a new anklet is created and when is removed, just add your Discord Webhook link in config file

```lua
-- Log webhooks for discord
Config.WebhookNewAnklet= ""

Config.WebhookRemoveAnklet= ""
```

## Translations

You can select with this settings what local you prefer

```lua

Config.Local = "en" -- it,es,fr,en,de Transaltion

```

You can add more locals, just add a code block like this in config file

```lua
Config.TranslateEN = {
    blips_off = "Blips deactivated",
    blips_on = "Blips activated",
    leave = "Player escaped with ankle monitor: ",
    invalid_limit = "Please enter a valid limit",
    max_range = "Please enter a number lower as boundary. Maximum: ",
    tracked = "The target already has a tracking bracelet.",
    no_player = "There is no player near you",
    removed = "Successfully removed the tracker",
    no_tracker = "The target does not have a tracking bracelet.",
    quit = "Player left the server with ankle monitor: ",
    cut = "Someone cut an anklet",
    success = "Done",
    car_success = "Tracker connected to vehicle",
    car_error = "No cars nearby",
    jammer_on = "Jammer on",
}
```

For example:

```
Config.TranslateJP = {
    blips_off = "Your new translation",
```

## SQL

This script works with any db, you can adapt everything from config

The original query for phone is:

{% code overflow="wrap" %}

```lua
('SELECT '..Config.DbIdentifier ..' FROM '..Config.PhoneDbTable..' WHERE '..Config.DbPhoneNumber ..' = @phone_number')
```

{% endcode %}

```lua
Config.PhoneDbTable = "users" -- users db table

Config.DbIdentifier = "identifier" --identifier field inside users db table

Config.DbPhoneNumber = "phone_number" --phone field inside users db table
```

You Must add this table in your DB, If you didn't recieve SQL file:

{% file src="/files/SgdbLpepvlSOWRY62SXa" %}

## Items and Props

You can disable game props like the anklet when you add a new anklet to a player from config

```lua
Config.Props = true --Enable props when add a new tracker
```

You need also to create the items that players will use with tracker system, or use existing items

Configure item names in config:

{% code overflow="wrap" %}

```lua
Config.ItemNames = {BoltCutter = 'tronchesi', CarTracker = 'cartracker', CarJam = 'carjammer'}

```

{% endcode %}

Also you can decide what items will be removed from player inventory after usage:

{% code overflow="wrap" %}

```lua
Config.RemoveItemsUponUsage = {BoltCutter = true, CarJam = true, CarTracker = true}
```

{% endcode %}

Set how much time (seconds) a player need to add or remove an anklet:

```lua
Config.InstallTimes = {
    Tracker = 5, -- How Many seconds will take to install the tracker
    BoltCutter = 7 -- how many seconds will take to deattach the tracker
}
```

## Notifications

Tracker system works with default esx notification system, if you have a custom script, change the export inside the config:

```lua
-- NOTIFICATION
Config.Notification = function(message, type) -- You can change here events for notifications
    TriggerEvent("esx:showNotification", message, type) -- type can be "info", "error", "success"
end
```

## Support

If you need more help:

{% content-ref url="/pages/e58lwPfWuNyRRzPTvcYd" %}
[Support](/ruxo-shop/overview/support.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ruxo.gitbook.io/ruxo-shop/fivem-scripts/tracker-system.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
