+Source|> Posted May 30, 2019 Share Posted May 30, 2019 انا مسوي ايديت بوكس ابي لما احط رابط يوتيوب في الايدت بوكس يشتغل الصوت -- كلينت requestBrowserDomains( { "www.convertmp3.io" } ) local browser = createBrowser( 0, 0, false ) local currentSound function callback( data, error ) if ( error ~= 0 ) then return outputChatBox( error ) end if ( data == "ERROR" ) then return outputChatBox( "data error" ) end local data = fromJSON( "["..data.."]" ) if ( data ) then loadBrowserURL( browser, data.UrlS ) end end function fetch( UrlS ) if ( UrlS ) then fetchRemote( "http://www.convertmp3.io/fetch/?format=JSON&video="..UrlS, callback ) end end addEventHandler( "onClientBrowserNavigate", browser, function( UrlS ) if not UrlS:find( "www.convertmp3.io" ) then currentSound = playSound( UrlS ) end end ) addEvent( "startSound", true ) addEventHandler( "startSound", root, function ( _, UrlS ) fetch( UrlS ) end ) Link to comment
JustP Posted May 31, 2019 Share Posted May 31, 2019 15 hours ago, +Source|> said: انا مسوي ايديت بوكس ابي لما احط رابط يوتيوب في الايدت بوكس يشتغل الصوت -- كلينت requestBrowserDomains( { "www.convertmp3.io" } ) local browser = createBrowser( 0, 0, false ) local currentSound function callback( data, error ) if ( error ~= 0 ) then return outputChatBox( error ) end if ( data == "ERROR" ) then return outputChatBox( "data error" ) end local data = fromJSON( "["..data.."]" ) if ( data ) then loadBrowserURL( browser, data.UrlS ) end end function fetch( UrlS ) if ( UrlS ) then fetchRemote( "http://www.convertmp3.io/fetch/?format=JSON&video="..UrlS, callback ) end end addEventHandler( "onClientBrowserNavigate", browser, function( UrlS ) if not UrlS:find( "www.convertmp3.io" ) then currentSound = playSound( UrlS ) end end ) addEvent( "startSound", true ) addEventHandler( "startSound", root, function ( _, UrlS ) fetch( UrlS ) end ) https://community.multitheftauto.com/index.php?p=resources&s=details&id=14600 هذا رابط مود نفس الي تحتاجه انت Link to comment
Hakan Posted May 31, 2019 Share Posted May 31, 2019 سطر 16 بدل data.UrlS إلى data.link Link to comment
Guest Posted June 1, 2019 Share Posted June 1, 2019 On 30/05/2019 at 16:13, +Source|> said: local currentSound هذا وشو؟ Link to comment
MrKAREEM Posted June 1, 2019 Share Posted June 1, 2019 9 minutes ago, DABL said: هذا وشو؟ يقدر يعرفه فوق بعدين تحت يحطله قيمة 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