Mr.Saitama Posted September 6, 2017 Share Posted September 6, 2017 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. Link to comment
koragg Posted September 7, 2017 Share Posted September 7, 2017 Doesn't this function work only on online streams? Never seen it being used on mp3 files. Link to comment
Administrators Lpsd Posted September 7, 2017 Administrators Share Posted September 7, 2017 Probably because the song doesn't have any of the data? If you go to the mp3 file itself and right click > properties > details, does it have title / artist data? @koragg should work for any sound element, whether it be a stream or local file. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now