diff --git a/resources/[carscripts]/mh_garage/client/main.lua b/resources/[carscripts]/mh_garage/client/main.lua index 64a0796e2..5bbc3e30d 100644 --- a/resources/[carscripts]/mh_garage/client/main.lua +++ b/resources/[carscripts]/mh_garage/client/main.lua @@ -20,7 +20,7 @@ local function SpawnGuardNPC(npc) end -- NPC erstellen - npcHandle = CreatePed(4, npc.model, npc.spawn, false, true) + npcHandle = CreatePed(4, npc.model, npc.spawn.x, npc.spawn.y, npc.spawn.x, npc.spawn.w false, true) -- NPC Eigenschaften setzen SetEntityAsMissionEntity(npcHandle, true, true) @@ -52,7 +52,7 @@ CreateThread(function() local playerCoords = GetEntityCoords(playerPed) for k, v in pairs(Config.Zonen) do - local dist = #(playerCoords - v.NPC.spawn) + local dist = #(playerCoords - vector3(v.NPC.spawn.x, v.NPC.spawn.y, v.NPC.spawn.z)) local spawnDistance = v.NPC.distance if dist < spawnDistance and not isNPCSpawned then diff --git a/resources/[carscripts]/mh_garage/server/server.lua b/resources/[carscripts]/mh_garage/server/server.lua new file mode 100644 index 000000000..e69de29bb