[FREE] πŸ“‘ QBCore GPS Tracker - Track Your Colleagues On The Map!

:satellite: QBCore GPS Tracker - Keep Track of Your Colleagues! :compass:

Enhance your server with our new QBCore GPS Tracker script! This robust script provides a range of features to improve your gaming experience by allowing players to see their colleagues on the map.

:scroll: Features:

  • Blip Visibility: Display blips for players in the same job or gang if they have a GPS tracker item in their inventory.
  • Configurable: Customize jobs, gangs, and blip colors easily in the config file.
  • Real-Time Updates: Blips are updated every 5 seconds to ensure accurate positioning.
  • Detailed Information: Blips show the player’s first and last name for easy identification.
  • Job/Gang Recognition: Accurately differentiate between colleagues in the same job, gang, or both.

:floppy_disk: Installation:

  1. Download the script.
  2. Add it to your server resources.
  3. Configure the settings in the config file to your preference.
  4. Start the resource and enjoy!

:wrench: Configuration:

  • Item Configuration: Ensure the players have the gps_tracker item in their inventory.
  • Blip Settings: Adjust the update interval, blip colors, and other settings in the config.lua file.
  • Customization: Easily add more jobs and gangs as needed.

:memo: Example Configuration:

Config = {
    ItemName = "gps_tracker",
    BlipUpdateInterval = 5000,  -- Update interval in milliseconds
    Jobs = {
        police = { blipColor = 3 },
        ambulance = { blipColor = 1 },
        mechanic = { blipColor = 5 },
        -- Add more jobs here
    },
    Gangs = {
        ballas = { blipColor = 5 },
        vagos = { blipColor = 46 },
        -- Add more gangs here
    }
}

:computer: Adding the GPS Tracker Item:

Add the following entry to your shared/items.lua file in QBCore:

['gps_tracker'] = {
    name = 'gps_tracker',
    label = 'GPS Tracker',
    weight = 200,
    type = 'item',
    image = 'gps.png',
    unique = false,
    useable = false,
    shouldClose = true,
    combinable = nil,
    description = 'A GPS tracker to see your colleagues on the map.'
}

:hammer_and_wrench: Commands:

  • /reloadgps - Reloads the GPS tracking.

:bulb: : Usage:

  1. Ensure the players have the gps_tracker item in their inventory.
  2. Players will automatically see their colleagues on the map.
  3. Use the /reloadgps command if needed to refresh the GPS tracking.

Preview
Preview 2

Github
MadV.GPS.rar (2.9 KB)

1 Like

script not working, it says failed to load import.lua
image