From fae041a7d8a426bcd2476942dd0732ad1951b1f5 Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Tue, 5 Aug 2025 09:56:00 +0200 Subject: [PATCH] Update client.lua --- .../[carscripts]/nordi_tracking/client.lua | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/resources/[carscripts]/nordi_tracking/client.lua b/resources/[carscripts]/nordi_tracking/client.lua index e86bd7cea..3f1d9d672 100644 --- a/resources/[carscripts]/nordi_tracking/client.lua +++ b/resources/[carscripts]/nordi_tracking/client.lua @@ -4,6 +4,23 @@ local trackingBlips = {} local inTrackingZone = false local currentLocation = nil +-- Safety check for Config +if not Config then + Config = {} + Config.TrackingLocations = { + { + coords = vector3(369.79, -1588.01, 29.43), + radius = 2.0, + job = {"police"}, + label = "Polizei Tracking System" + } + } + Config.EnableCommand = true + Config.Command = "tracking" + Config.InteractKey = 38 + print("^1Warning: Config not loaded properly, using default values^7") +end + -- Command to open tracking menu (if enabled in config) if Config.EnableCommand then RegisterCommand(Config.Command, function() @@ -30,6 +47,9 @@ if Config.EnableCommand then end) end +-- Rest of your client.lua code... + + -- Check if player is near a tracking location CreateThread(function() while true do