Jump to content

[Help] gui-Browser load Problem


Rouzbeh

Recommended Posts

Posted (edited)

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
  • Moderators
Posted

What is the error in debugscript?

But one end and is missing at the end.

addEventHandler("onClientBrowserCreated", theBrowser, function()
	loadBrowserURL(source, page)
end)

 

Posted

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
Posted (edited)
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
Posted
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 ?!

Posted (edited)
3 minutes ago, Fire Monkey said:

Please show me your code

no there isn't any problem inside the code

I mentioned it in last posts, its something related to windows i think...

Edited by Rouzbeh
Posted
1 minute ago, Rouzbeh said:

no there isn't any problem inside the code, I mentioned it in last posts...

No, I have a trick to load the login page for all players.

If you give me your code, I can help you.

Posted
5 minutes ago, Rouzbeh said:

no there isn't any problem inside the code

I mentioned it in last posts, its something related to windows i think...

Rouzbeh jan man Richard am mikhay biyay ts ya discord ye login panel jadid ba gui ok konim ?

Posted
29 minutes ago, Fire Monkey said:

No, I have a trick to load the login page for all players.

If you give me your code, I can help you.

No
Anyone Else?

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