ed
This commit is contained in:
parent
4c9a54ff7b
commit
5dd6e5a4e4
2 changed files with 20 additions and 5 deletions
|
@ -98,7 +98,8 @@ function StartTracking(plate, vehicleData)
|
|||
activeTrackings[plate] = {
|
||||
vehicle = vehicleData.vehicle,
|
||||
coords = vehicleData.coords,
|
||||
lastUpdate = GetGameTimer()
|
||||
lastUpdate = GetGameTimer(),
|
||||
owner = vehicleData.owner or "Unbekannt"
|
||||
}
|
||||
|
||||
-- Erstelle Blip
|
||||
|
@ -114,6 +115,9 @@ function StartTracking(plate, vehicleData)
|
|||
|
||||
trackingBlips[plate] = blip
|
||||
|
||||
-- Zeige Besitzerinformation an
|
||||
QBCore.Functions.Notify('Fahrzeug gehört: ' .. activeTrackings[plate].owner, 'info', 5000)
|
||||
|
||||
-- Starte Update Loop
|
||||
CreateThread(function()
|
||||
while activeTrackings[plate] do
|
||||
|
@ -137,7 +141,7 @@ function ShowActiveTrackings()
|
|||
local distance = #(GetEntityCoords(PlayerPedId()) - vector3(data.coords.x, data.coords.y, data.coords.z))
|
||||
options[#options + 1] = {
|
||||
title = 'Kennzeichen: ' .. plate,
|
||||
description = 'Entfernung: ' .. math.floor(distance) .. 'm | Letztes Update: ' .. math.floor((GetGameTimer() - data.lastUpdate) / 1000) .. 's',
|
||||
description = 'Besitzer: ' .. data.owner .. ' | Entfernung: ' .. math.floor(distance) .. 'm | Letztes Update: ' .. math.floor((GetGameTimer() - data.lastUpdate) / 1000) .. 's',
|
||||
icon = 'fas fa-car',
|
||||
onSelect = function()
|
||||
SetNewWaypoint(data.coords.x, data.coords.y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue