Jump to content

[Help] gui-Browser load Problem


Rouzbeh

Recommended Posts

Hii
i have a weird problem with gui-Browser, i'm using [HTML/CSS/JavaScript] in Login Panel, but browser simply doesn't show up for some players so they can't login and so on

i used this:
 

local screenWidth, screenHeight = guiGetScreenSize()
local page = "http://mta/local/index.html"

initBrowser = guiCreateBrowser(0, 0, screenWidth, screenHeight, true, true, false)
theBrowser = guiGetBrowser(initBrowser)
screenW, screenH = guiGetScreenSize()
addEventHandler("onClientBrowserCreated", theBrowser, function()
	loadBrowserURL(source, page)

what can cause this?

Edited by Rouzbeh
Link to comment

try this

sx, sy = guiGetScreenSize()
link = "http://mta/local/index.html"
brwC = guiCreateBrowser(0, 0, sx, sy, true, false, false)
browser = guiGetBrowser(brwC)
addEventHandler("onClientBrowserCreated", browser, function()
	loadBrowserURL(source, link)
end) -- #irm
Link to comment
19 hours ago, Patrick said:

What is the error in debugscript?

as i said that doesn't work for some players not all, and for me it's just ok

and there is no debug error, becuz it's client-side for those players

i think there must be something on windows apps/settings they are using? is it possible?

Edited by Rouzbeh
Link to comment
1 hour ago, Rouzbeh said:

as i said that doesn't work for some players not all, and for me it's just ok

and there is no debug error, becuz it's client-side for those players

i think there must be something on windows apps/settings they are using? is it possible?

You probably have an event for trigger load login panel ?!

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