Image1 = guiCreateStaticImage(835, 431, 360, 417, ":mp3/2.png", false)
Gird = guiCreateGridList(115, 17, 127, 189, false, Image1)
Image2 = guiCreateStaticImage(153, 275, 48, 44, ":mp3/1.png", false,Image1 )
Image3 = guiCreateStaticImage(153, 275, 48, 44, ":mp3/3.png", false, Image1)
local Sound = {
{ "TEST","URL" },
}
for i,v in ipairs( Sound ) do
local row = guiGridListAddRow( Gird )
guiGridListSetItemText( Gird, row, 1, v[1], false, false ) --باد ارقمنت
end
addEventHandler('OnClientGUIDoubleClick',Image2,
function ( )
if guiGridListGetSelectedItem ( Gird ) ~= -1 then
if isElement ( sound ) then
destroyElement ( sound )
end
sound = playSound ( guiGridListGetItemData ( Gird,MyRow,1 ) )
outputChatBox(' Sound Loading ...')
guiSetVisible ( Image2, false )
end
end,false
)