From e9ede0830e4000c8f0d949fae3a2a38065c76d8e Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Sun, 20 Jul 2025 19:15:43 +0200 Subject: [PATCH] Update main.lua --- .../nordi_containerheist/client/main.lua | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/resources/[jobs]/[crime]/nordi_containerheist/client/main.lua b/resources/[jobs]/[crime]/nordi_containerheist/client/main.lua index dfdd453a6..9cce7aa40 100644 --- a/resources/[jobs]/[crime]/nordi_containerheist/client/main.lua +++ b/resources/[jobs]/[crime]/nordi_containerheist/client/main.lua @@ -469,29 +469,9 @@ CreateThread(function() else print("[Container Heist] Error: Config.ContainerTypes is nil or empty!") end - - -- Check if Config.ContainerLocations exists and is not empty - if Config.ContainerLocations and next(Config.ContainerLocations) then - -- Spawn containers at fixed locations if configured - for _, location in pairs(Config.ContainerLocations) do - if location.spawnContainer then - local hash = GetHashKey(location.model) - RequestModel(hash) - while not HasModelLoaded(hash) do - Wait(10) - end - - local container = CreateObject(hash, location.coords.x, location.coords.y, location.coords.z, true, false, false) - SetEntityHeading(container, location.heading) - FreezeEntityPosition(container, true) - SetModelAsNoLongerNeeded(hash) - end - end - else - print("[Container Heist] Warning: Config.ContainerLocations is nil or empty!") - end end) + -- Automatically scan for containers periodically CreateThread(function() while true do