Hello guys, i have an problem at my script, code:
addCommandHandler("faka",
function()
for i,v in ipairs(getElementsByType("sound")) do
local meta = getSoundMetaTags(v)
if not meta or not meta.artist and not meta.title then
outputChatBox("song: no info")
else
outputChatBox(meta.artist.. " - " ..meta.title.. "")
end
end
end
)
the script does not show Race/DM Maps music name.. just the "song: no info". Can you guys help me?
Thanks.