Jump to content

problem


developa

Recommended Posts

hello, can you use the object attribute in html in cef in mta?

code html:

<html>
  <head>
    <title>test object</title>
  </head>
  <body>
    <object data="object.swf" type="application/x-shockwave-flash" width="1000" height="500"></object>
  </body>
</html>

 

code lua:

local x,y=guiGetScreenSize()
local ui=guiCreateBrowser(0,0,x,y,true,true,false)
addEventHandler("onClientBrowserCreated",ui,function()
  loadBrowserURL(source,"http://mta/local/index.html")
end)

 

this code not worked, does mta include the swf format?

Edited by developa
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...