Jump to content

مساعده في كود يوتيوب


Recommended Posts

انا مسوي ايديت بوكس

ابي لما احط رابط يوتيوب في الايدت بوكس

يشتغل الصوت

 

-- كلينت

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...