Jump to content

[AJUDA] Botão para link site.


Recommended Posts

  • Other Languages Moderators
local screenWidth, screenHeight = guiGetScreenSize() -- Recebe a resolução da tela do jogador.
local browser = guiCreateBrowser (0, 0, screenWidth, screenHeight, false, false, false) -- Cria um gui-browser.
local theBrowser = guiGetBrowser (browser) -- Recebe o elemento do gui-browser.

addEventHandler ("onClientBrowserCreated", theBrowser, function () -- Ativa essa função quando o theBrowser for carregado.
	loadBrowserURL (source, "https://www.youtube.com/") -- Carrega este link no browser.
end)

Exemplo da própria Wiki.

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