VanDal Posted February 22, 2015 Share Posted February 22, 2015 hi guys i have problem here i script a login with the guieditoir with dxdraw and i dont know now how i will make it a script i mean whene i take the file and i add meta script show but whene i start it nothing its just work if i make it in the gui editoir. this is photo for it, plz i need fast answer and thank you. http://prntscr.com/67zffy Link to comment
Laysiks Posted February 22, 2015 Share Posted February 22, 2015 Check this. This script have handlers onClientRender, this must be on client-side. Link to comment
VanDal Posted February 22, 2015 Author Share Posted February 22, 2015 i do this mate its show in the p panl but when i start it not work just if i make it on gui editoir script. its just like this inside : GUIEditor = { edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.edit[1] = guiCreateEdit(391, 300, 300, 36, "", false) GUIEditor.edit[2] = guiCreateEdit(391, 458, 300, 36, "", false) GUIEditor.edit[3] = guiCreateEdit(391, 380, 300, 36, "", false) end ) addEventHandler("onClientRender", root, function() dxDrawRectangle(213, 132, 546, 487, tocolor(0, 0, 0, 147), false) dxDrawLine(213, 238, 757, 238, tocolor(19, 218, 206, 255), 1, true) dxDrawText("-- TNIG Register Panel --", 251, 170, 717, 219, tocolor(27, 235, 222, 255), 1.20, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Username :", 227, 300, 376, 336, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Confirm Password :", 227, 458, 376, 494, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Password :", 227, 380, 376, 416, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawRectangle(213, 571, 174, 48, tocolor(27, 235, 222, 185), true) dxDrawRectangle(585, 571, 174, 48, tocolor(27, 235, 222, 185), true) dxDrawText("Welcome !!", 239, 576, 381, 601, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, true, false, false) dxDrawText("Cancel", 624, 575, 754, 599, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, true, false, false) end ) Link to comment
Laysiks Posted February 22, 2015 Share Posted February 22, 2015 save it at c.lua and add the meta.xml in previos post i says. Link to comment
VanDal Posted February 22, 2015 Author Share Posted February 22, 2015 save it at c.luaand add the meta.xml in previos post i says. and i say i do that i just whene i refresh and start it dont work. Link to comment
JR10 Posted February 22, 2015 Share Posted February 22, 2015 Post any errors in /debugscript 3 Link to comment
VanDal Posted February 22, 2015 Author Share Posted February 22, 2015 start: Resource 'login' started [19:34:42] SCRIPT: CripZ-H>TurBox(Slugx) set his script debug mode to 3 debugscript: Your debug mode was set to 3 nothing Link to comment
JR10 Posted February 22, 2015 Share Posted February 22, 2015 The script is clientside, start it after you do /debugscript 3 Link to comment
VanDal Posted February 22, 2015 Author Share Posted February 22, 2015 The script is clientside, start it after you do /debugscript 3 I do. nvm no one will unterstand what i mean. 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