mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
24 lines
714 B
Lua
24 lines
714 B
Lua
|
|
--[[
|
||
|
|
| This file was obtained through the combined efforts
|
||
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
||
|
|
|
|
||
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
||
|
|
|
|
||
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||
|
|
--]]
|
||
|
|
|
||
|
|
ix.teleporters = ix.teleporters or {}
|
||
|
|
ix.teleporters.selected = ix.teleporters.selected or {}
|
||
|
|
ix.teleporters.data = ix.teleporters.data or {}
|
||
|
|
|
||
|
|
function ix.teleporters:RetrieveData(entity)
|
||
|
|
if (entity and isentity(entity) and ix.teleporters.data and !table.IsEmpty(ix.teleporters.data)) then
|
||
|
|
for k, v in ipairs(ix.teleporters.data) do
|
||
|
|
if (v["id"] == entity:EntIndex()) then
|
||
|
|
return v
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|