Search the Community

Showing results for tags 'browser'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 16 results

  1. What's up everyone, I know everyone has their own opinion in what browser(s) they like to use so I wanted to know what's your favourite browser. Mine's Brave which uses Chromium as it's base interface.
  2. Hello MTA, sorry if my English is bad I'm looking for a way to load a website in the game, for example a website that I have forums.javaliferoleplay.web.id I have a code like this function register_panel( ) local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 1280, 720 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 local window = guiCreateWindow( left, top, windowWidth, windowHeight , "Register", false ) local browser = guiCreateBrowser( 0, 28, windowWidth, windowHeight -60, false, false, false, window ) local theBrowser = guiGetBrowser( browser ) guiWindowSetSizable(window, false) requestBrowserDomains({ "forums.javaliferoleplay.web.id" }) addEventHandler( "onClientBrowserCreated", theBrowser, function( ) loadBrowserURL( source, "http://forums.javaliferoleplay.web.id/" ) end ) local close = guiCreateButton(0, 700, 1280, 50, "CLOSE", false, window) addEventHandler ( "onClientGUIClick", close, function() guiSetVisible(window, false) end ) end In the code above, the website I intended to load does not appear, but there is a dialog box asking for permission to open the link. But when opening youtube for example, the website opens normally. Can someone help me? Thanks before
  3. Загружаю страницу через loadBrowserURL( theGUIBrowser, "http://www.site.ru/test.php") Пробовал и без www, и без http. Страница не загружается, проверял через вывод URL, он почему-то становится пустым. Если вставить к примеру youtube.com всё работает прекрасно, а если вставляю ссылку на другие сайты, url просто очищается. Подскажите пожалуйста как это поправить.
  4. is it possible to open netflix in a browser in mta?
  5. Dear users, I want to let the users to sign-up and sign-in the game when connected to my server. For some reasons (PHP scripts and third-parties API) I can't use simple GUI elements, but a webpage hosted on a LAMP server. Now, I know I need permissions by the player to access that webpage, via requestBrowserDomains function, and I'll say to the players they need to allow those domains to play. I want to load a simple browser when the player joins the game, and to do these steps: load a simple page hosted in the resource which informs the user he needs to allow some domains to play; ask the permission for those domains; load the page hosted externally to sign-in or sign-up; let the user to login to my server in that page; read the result from that script (in JSON) and parse it in a function to login the user in the game; close the browser and spawn the player assigning some properties (e.g. money amount, particular skin, etc...). I read some function documentations and I wrote this clientside code: window = guiCreateWindow( 0.2, 0.2, 0.6, 0.6, "Titolo", true ) dimx, dimy = guiGetSize(window, false) browser = guiCreateBrowser( 0, 28, dimx, dimy, false, false, false, window ) theBrowser = guiGetBrowser( browser ) requestBrowserDomains({'192.168.1.16'}) guiWindowSetMovable ( window, false ) showCursor ( true ) addEventHandler( "onClientBrowserCreated", theBrowser, function( ) loadBrowserURL( source, "http://192.168.1.16/" ) end ) addEventHandler('onClientBrowserWhitelistChange', root, function(lista) outputChatBox(table.getn(lista)) loadBrowserURL( source, "http://192.168.1.16/" ) end ) I'm executing this code to resource start for test, and 192.168.1.16 is the LAN server IP for test, I'll change it in production mode. When the resource starts, the window opens, and asks me for the permission, but when I grant it, does nothing. How can I solve and begin this new login resource? Thanks
  6. Hi everyone, is there possible to use microphone on CEF? I took a look at the wiki, but i didn't find nothing about it.
  7. i rented a server from a hosting, and run online five days, but the server does not appear in the server browser why? With the IP address, i can join to the server
  8. x,y = guiGetScreenSize() image = guiCreateStaticImage( x*0.05, y*0.1, x*0.9, y*0.7, "border.png", false) local browser = guiCreateBrowser(x*0.113, y*0.045, x*0.673, y*0.605, false, false, false, image) guiSetVisible ( image, false ) local theBrowser = guiGetBrowser(browser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "http://tinyurl.com/lysqs6y") end ) function funct() if guiGetVisible ( image ) == false then showCursor ( true ) guiSetVisible ( image, true) else showCursor ( false) guiSetVisible ( image, false) end end addCommandHandler("honfoglalo", funct) why not working? when i change the URL to "http://youtube.com" the YT is working, but this why not?
  9. Hey there, im here cause im having some issues with CEF Browser, the problem is that isn't showing the web-site color and i don't really know why. Original: MTA Browser:
  10. Hi! I don't know, how is it possible: I try it with HTML, the video is in .webm format, and I have a bad fps drop, with link I can't do it, I don't know HTML well. I try it with createBrowser too, but with this, I can't do it that the gui or dxdraw be in front of the video, the browser.
  11. السلام عليكم ورحمة الله وبركاته ي جماعه ابي حل لمشكلتي وهي اني لافتحت المود تجي اللوحة ومايجي المتصفح (Browser) الكود x,y = guiGetScreenSize() GUIEditor = { button = {}, staticimage = {}, browser = {} } addEventHandler("onClientResourceStart", resourceRoot, function() x,y = guiGetScreenSize() GUIEditor.staticimage[1] = guiCreateStaticImage( x*0.05, y*0.1, x*0.9, y*0.7, "tlo.png", false) local browser = guiCreateBrowser(x*0.113, y*0.045, x*0.673, y*0.605, false, false, false, GUIEditor.staticimage[1]) local theBrowser = guiGetBrowser(browser ) guiSetVisible ( GUIEditor.staticimage[1], false ) GUIEditor.staticimage[2] = guiCreateStaticImage(1306, 286, 66, 53, "cancel.png", false, GUIEditor.staticimage[1]) GUIEditor.button[1] = guiCreateButton(1284, 267, 109, 90, "X", false, GUIEditor.staticimage[1]) guiSetAlpha(GUIEditor.button[1], 0.00) end ) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "http://www.youtube.com") end ) addCommandHandler('youtube', function() local vis = not guiGetVisible(GUIEditor.staticimage[1]) guiSetVisible(GUIEditor.staticimage[1],vis) showCursor(vis) end ) addEventHandler ("onClientGUIClick", root, function() if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.staticimage[1], false) showCursor(false) guiSetInputEnabled(false) end end )
  12. XFawkes

    Browser input

    Is there any way I can put a text in a browser textfield that is not hosted on localhost? I know that I could inject mouse down on a textfield and user can type on his own a text string using his keyboard. The point is to do it from the code. Something like: injectBrowserMouseDown injectBrowserMouseUp injectBrowserTextInput("abcdefg") I wanted to use JS to get element by id and update innerText, but executeJavaScript does not with remote addresses.
  13. Is there any possibility to change browser request headers, user-agent for example?
  14. I'm wanting to know if there is a way to execute javascript functions from MTA to an iframe that is being shown in the browser. When I try and execute the function, it says it isn't defined. Thanks.
  15. <meta> <script src="client.lua" type="client" /> <min_mta_version server="1.5.0-9.07439" /> </meta> Client: local x, y = guiGetScreenSize() local browser = createBrowser(x, y, true) addCommandHandler("lgn", function() loadBrowserURL(browser, "http://mta/local/login.html") addEventHandler("onClientRender", getRootElement(), function() dxDrawImage(0, 0, x, y, browser, 0, 0, 0, tocolor(255, 255, 255), true) end) end) File tree being:
  16. Hello guys. I'm writing a costume GUI system with dx functions but it is possible with a browser too. What do you guys think which way should i do? Which has better performance? My dx GUI is simple (recentagle shaped) but if i make it with browser i would make a more fancy GUI (I mean curved border, nice animations with HTML5 or maybe responsive with media queries) MTA can handle this on a slow PC too? And can someone link some docs or examples about this JavaScript <-> Lua communication? How i JS call a Lua func or Lua a JS func?