Update tables.lua

This commit is contained in:
MrNewb committed 2025-03-13 01:10:42 -04:00
1 parent 4e95d7e9b4
commit 996d8d9065
1 file changed
+8
+8
View File
@@ -46,6 +46,14 @@ Table.TableContainsKey = function(tbl, search)
return false
end
Table.TableGetKeys = function(tbl)
local keys = {}
for k ,_ in pairs(tbl) do
table.insert(keys,k)
end
return keys
end
Table.GetClosest = function(coords, tbl)
local closestPoint = nil
local dist = math.huge