ViRuZGamiing Posted December 13, 2016 Share Posted December 13, 2016 <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: Link to comment
pa3ck Posted December 14, 2016 Share Posted December 14, 2016 You must include all files, including JS, CSS, HTML in your meta. Also, your resource is called test, why is it not this then: loadBrowserURL(browser, "http://mta/test/login.html") Link to comment
ViRuZGamiing Posted December 14, 2016 Author Share Posted December 14, 2016 35 minutes ago, pa3ck said: You must include all files, including JS, CSS, HTML in your meta. Also, your resource is called test, why is it not this then: loadBrowserURL(browser, "http://mta/test/login.html") And I quote; 'resourceName: The resource name, local is a special name for the current resource' https://wiki.multitheftauto.com/wiki/Local_Scheme_Handler That's why. didn't knew I had to add it to the Meta tho. Script or file tag? Link to comment
ViRuZGamiing Posted December 14, 2016 Author Share Posted December 14, 2016 Fixed it by adding it as a <file> in the meta, <html> doesn't work 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