local sTations =
{
{ "Power 181", "http://www.181.fm/asx.php?station=181-uktop40&style=&a..scription=" },
}
addEventHandler( "onClientResourceStart", getRootElement( ),
function ()
for i, n in pairs ( sTations ) do
local row = guiGridListAddRow ( stationGridList )
guiGridListSetItemText ( stationGridList, row, column, n[1], false, false )
end
end
)
function test()
local statioN = guiGridListGetItemText ( stationGridList, guiGridListGetSelectedItem ( stationGridList ), 1 )
if station == n[1] then
playSound( n[2] )
end
end
addEventHandler("onClientGUIClick", player, test )
how can I make this work ? I tryed but failed...