botshara Posted April 8, 2014 Share Posted April 8, 2014 local streams = { } streams[1] = {"http://relay.181.fm:8008", "181.1 - Rock 181 FM"} streams[2] = {"http://relay.181.fm:8068","181.2 - Old School 181 FM"} function showStation(source) local theVehicle = getPedOccupiedVehicle(getLocalPlayer()) local meta = getSoundMetaTags(source) if (theVehicle) then local streamID = getElementData(theVehicle, "vehicle:radio") local streamTitle if tonumber(streamID) ~= 0 then streamTitle = streams[tonumber(streamID)][2] else streamTitle = "Radio Off" end outputChatBox(streamTitle .."Song: "..(meta.title)) end end didnt show song title Link to comment
TrapLord Studios™ Posted April 8, 2014 Share Posted April 8, 2014 Instead of "meta.title" just put "meta" Link to comment
arezu Posted April 8, 2014 Share Posted April 8, 2014 how are you triggering "showStation" ? did you try debugscript 3 command to see if there was error? and keep in mind not all songs have title in the sound data. Link to comment
Dealman Posted April 9, 2014 Share Posted April 9, 2014 Try concatenating stream_name and stream_title as well. Different radios use different tags, and some don't use it at all. Some also use meta tags as a way to advertise. 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