From a07935df7e2fe378b3a243b665e3c8b49c2a3aec Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Wed, 4 Dec 2024 03:06:48 -0500 Subject: [PATCH] feat(add exports for external data pulling) This pr will allow me to pull data externally. Intended use, external scripts pull this data to find the nearby door, check status, etc --- client/main.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client/main.lua b/client/main.lua index 9d30426..40a2b37 100644 --- a/client/main.lua +++ b/client/main.lua @@ -883,3 +883,19 @@ CreateThread(function() Wait(sleep) end end) + +exports('GetClosestDoor', function() + return closestDoor +end) + +exports('GetNearbyDoors', function() + return nearbyDoors +end) + +exports('GetDoorList', function() + return Config.DoorList +end) + +exports('GetDoorStates', function() + return Config.DoorStates +end) \ No newline at end of file