Hey guys! I want to create an object counter for Map Editor but when i use #getElementsByType("object") it still show 1 object when there's 0 object on editor's list.
with object:
without object:
x,y = guiGetScreenSize()
addEventHandler("onClientRender", root, function()
dxDrawText(string.format("obj: %d", #getElementsByType("object")), x * 0.4470, y * 0.1514, x * 0.5071, y * 0.1800, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false)
end)