This script allows players to see their colleagues from the same job or gang on the map if they have a GPS tracker item in their inventory. The blips are updated every 5 seconds and will show the player's first and last name. The gang functionality is only available for QBCore.
Dieses Skript ermöglicht es Spielern, ihre Kollegen mit dem gleichen Job oder aus der gleichen Gang auf der Karte zu sehen, wenn sie einen GPS-Tracker im Inventar haben. Die Blips werden alle 5 Sekunden aktualisiert und zeigen den Vor- und Nachnamen des Spielers an. Die Gang-Funktion ist nur für QBCore verfügbar.
Edit the config.lua
file to customize the jobs and gangs, including their blip colors.
Config = {
Framework = 'QBCore', -- Set to 'QBCore', 'ESX' or 'ESX_Legacy'
ItemName = "gps_tracker",
BlipUpdateInterval = 5000, -- Update interval in milliseconds
Jobs = {
police = { blipColor = 18 }, -- Light Blue
ambulance = { blipColor = 1 }, -- Red
mechanic = { blipColor = 11 }, -- Light Green
-- Add more jobs here
},
Gangs = {
ballas = { blipColor = 83 }, -- Purple
vagos = { blipColor = 5 }, -- Yellow
-- Add more gangs here
}
}
Add the following entry to your shared/items.lua file in QBCore or the equivalent file in ESX:
['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.'
}
/reloadgps - Reloads the GPS tracking.