Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function debugging()
- for a, b in pairs(indexedPools) do
- if a == "object" then
- outputChatBox(tostring(indexedPools["object"][5])) -- this returns the object
- for i,v in ipairs(b) do
- outputChatBox(getElementData(v, "id"))
- end
- end
- end
- end
- addCommandHandler("debugpool", debugging)
- function getElement(elementType, id)
- outputChatBox(indexedPools["object"][5]) -- this returns a nil value
- return indexedPools[elementType] and indexedPools[elementType][tonumber(id)]
- end
Advertisement
Add Comment
Please, Sign In to add comment