Skraund Posted April 7, 2018 Share Posted April 7, 2018 (edited) Hello, I would like to ask how you can make the browser appear by pressing the P key, and turn off on the T? Here's what I did at the moment: local browser = guiCreateBrowser( x*14, y*200, 500, 25, true, true, false ) local theBrowser = guiGetBrowser( browser ) function createBrowser() loadBrowserURL( source, "http://mta/1/1.html" ) end addEventHandler( "onClientBrowserCreated", root, createBrowser ) Edited April 7, 2018 by Skraund Link to comment
myonlake Posted April 7, 2018 Share Posted April 7, 2018 You can use bindKey to bind a key to toggle it on and off with guiSetVisible. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now