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