# Config

```lua
Config = {}

Config.ESXTrigger = function()
    local ESX = nil
    
    ESX = exports["es_extended"]:getSharedObject()
    --TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
    return ESX
end

Config.Events = {
    ["playerLoaded"] = "esx:playerLoaded",
    ["setJob"] = "esx:setJob"
}

Config.UpdateTime = 5000 --the shorter the time, the more power is required. I recommend 5000 that is 5000ms
Config.ItemName = "job_gps"
Config.NeedItemToSeeGPS = true -- if true, players only see GPS from other players if the player has a GPS (requires more power)
Config.SeeSelfGPS = false
Config.Debug = true -- WARNING Spam :D

Config.Jobs ={
    ["police"] = {
        Sprite = 60,
        Color = 38,
        ShortRange = true,
        Scale = 0.8,
        
        Label = "LSPD",
        jobs = { -- the gps signals that this job can see.
            "ambulance",
            "sheriff"
        },
        Blink = {
            CanBlink = true,  -- if the siren is on
            BlinkColor = 59
        }
    },
    ["ambulance"] = {
        Sprite = 60,
        Color = 36,
        ShortRange = true,
        Scale = 0.8,
        
        Label = "LSMD",
        jobs = { -- the gps signals that this job can see.
            "police",
            "sheriff"
        },
        Blink = {
            CanBlink = true,  -- if the siren is on
            BlinkColor = 59
        }
    },
    ["taxi"] = {
        Sprite = 60,
        Color = 32,
        ShortRange = true,
        Scale = 0.8,
        
        Label = "Taxi",
        jobs = { -- the gps signals that this job can see.
        },
        Blink = {
            CanBlink = false,  -- if the siren is on
            BlinkColor = 59
        }
    }
}

```


---

# 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:

```
GET https://novel-devolution.gitbook.io/novel_devolution/novel-jobgps-esx/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
