syn0nym Posted February 19, 2022 Posted February 19, 2022 Hello everyone I have a problem when i scripting, so i make a gui based from html, the gui running perfectly but when i add a setCameraMatrix on the server side, it not showing. client local x, y = guiGetScreenSize() local browser = guiCreateBrowser(0, 0, x, y, true, true, false) local theBrowser = guiGetBrowser(browser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "http://mta/local/panel/index.html") guiSetVisible(browser, true) end ) showCursor(true) server side function Start() fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) setPlayerHudComponentVisible(source, "all", false) end addEventHandler("onPlayerJoin", root, Start)
marcelluss Posted February 19, 2022 Posted February 19, 2022 (edited) from personal experience, I do not advise you to use СEF - or to be more precise html interfaces (they are resource-intensive and very buggy since the browser version itself is also old to use). I talked to a lot of people on this topic and many of them claimed me and even gave many examples that this is really a senseless idea. + also, not everyone can load these interfaces Edited February 19, 2022 by marcelluss
syn0nym Posted February 19, 2022 Author Posted February 19, 2022 Okay thanks for replying my topic, is there any suggestion for make a custom gui like a HTML?
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