DiGiTal Posted July 25, 2017 Share Posted July 25, 2017 '(' expected near function line 6 and line 45 ,i created a help panel i wanna show it by bind F7 but i think i done some errors local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function () dxDrawLine(94 - 1, 60 - 1, 94 - 1, 540, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(706, 60 - 1, 94 - 1, 60 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(94 - 1, 540, 706, 540, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(706, 540, 706, 60 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle((screenW - 612) / 2, (screenH - 480) / 2, 612, 480, tocolor(100, 173, 247, 200), false) dxDrawLine(94, 90, 705, 90, tocolor(255, 255, 255, 255), 1, true) dxDrawText("Zero Fear -Help Panel-", screenW * 0.4325, screenH * 0.1050, screenW * 0.9875, screenH * 0.1500, tocolor(0, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, true, false, false) dxDrawRectangle(screenW * 0.1175, screenH * 0.1583, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawRectangle(screenW * 0.4063, screenH * 0.1583, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawText("Roster", 378, 100, 513, 122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawLine((screenW * 0.4063) - 1, (screenH * 0.2083) - 1, (screenW * 0.4063) - 1, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.5825, (screenH * 0.2083) - 1, (screenW * 0.4063) - 1, (screenH * 0.2083) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawLine((screenW * 0.4063) - 1, screenH * 0.5733, screenW * 0.5825, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.5825, screenH * 0.5733, screenW * 0.5825, (screenH * 0.2083) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawRectangle(screenW * 0.4063, screenH * 0.2083, screenW * 0.1762, screenH * 0.3650, tocolor(26, 16, 27, 150), true) dxDrawText("Rules", 139, 103, 274, 125, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("[Founders]\nAnonymous\nGamer\n[Admins]\nSmoke\nTeodora\n[Staff]\n Linux\n JayZer", screenW * 0.4500, screenH * 0.2083, screenW * 0.6288, screenH * 0.5733, tocolor(244, 180, 205, 251), 1.00, "default", "left", "top", false, true, true, false, false) dxDrawText("", 94, 128, 94, 129, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText("-Don't camp\n-Don't Hack\n-Don't GK in Shooter ! (GK=Kick)\n-Don't use any nick of admins 'ZF'\n-Respect the admins.\n-Don't insult anyone.\n-Don't ask for admin rights, Go apply on forum, if you don't have any answre Just WAIT.\n-Don't Ask Admins to vote vor you .\n", screenW * 0.1175, screenH * 0.2150, screenW * 0.3975, screenH * 0.5733, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", true, true, true, false, false) dxDrawRectangle(screenW * 0.1113, screenH * 0.2083, screenW * 0.2825, screenH * 0.2683, tocolor(26, 16, 27, 150), true) dxDrawLine(94, 513, 705, 513, tocolor(255, 255, 255, 255), 1, true) dxDrawText("Roster", 378, 100, 513, 122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawRectangle(screenW * 0.6288, screenH * 0.1533, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawLine((screenW * 0.5938) - 1, (screenH * 0.2100) - 1, (screenW * 0.5938) - 1, screenH * 0.8550, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.8688, (screenH * 0.2100) - 1, (screenW * 0.5938) - 1, (screenH * 0.2100) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawLine((screenW * 0.5938) - 1, screenH * 0.8550, screenW * 0.8688, screenH * 0.8550, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.8688, screenH * 0.8550, screenW * 0.8688, (screenH * 0.2100) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawRectangle(screenW * 0.5938, screenH * 0.2100, screenW * 0.2750, screenH * 0.6450, tocolor(26, 16, 27, 150), true) dxDrawText("FAQ", 557 + 1, 100 + 1, 654 + 1, 152 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("FAQ", 557, 100, 654, 152, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Q)What is the forum\nA)http://Zerofear.boards.net\nQ) is the teaming allowed?\nA) Yes,it is.\nQ) A admin kicked,muted,banned me !\nA) Sure,your rule break.if you see any abuse about admins/staff please report in game or on forum.\nQ) How can i invite players to my team ?\nA) tap : /team invite [playername]\nQ) I would like to join ZF staff ?\nA) Sure , Go see the forum (zerofear.boards.net)\nQ) How can i accept invite ?\nA) Tap : /team accept\nQ) How to decline invite ?\nA) Tap : /team decline\n", (screenW * 0.5950) + 1, (screenH * 0.2250) + 1, (screenW * 0.8700) + 1, (screenH * 0.8683) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, true, true, false, false) dxDrawRectangle(screenW * 0.1237, screenH * 0.5633, screenW * 0.1550, screenH * 0.0367, tocolor(26, 16, 27, 150), true) dxDrawRectangle(screenW * 0.1237, screenH * 0.6067, screenW * 0.4637, screenH * 0.2450, tocolor(26, 16, 27, 150), true) dxDrawText("Premuim", 138, 338, 273, 360, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("why to donate?\n1) get your rewards(money,vip skin)\n2)Get Premuim Panel(premuim cars,lights)\n3)Get many features as the vip wheels.\n4)Ask admin for the others features\n5)with 1$ you get 1 week vip features.\n6)ask admin if help needed", 101, 369, 460, 503, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) end ) BindKey("F7","down", function () if ( removeEventHandler("onClientRender",root,) showCursor(true) else addEventHandler("onClientRender",root,) end end ) ) Link to comment
DNL291 Posted July 25, 2017 Share Posted July 25, 2017 local screenW,screenH = guiGetScreenSize() local dxShowing = false function renderDX() dxDrawLine(94 - 1, 60 - 1, 94 - 1, 540, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(706, 60 - 1, 94 - 1, 60 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(94 - 1, 540, 706, 540, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(706, 540, 706, 60 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle((screenW - 612) / 2, (screenH - 480) / 2, 612, 480, tocolor(100, 173, 247, 200), false) dxDrawLine(94, 90, 705, 90, tocolor(255, 255, 255, 255), 1, true) dxDrawText("Zero Fear -Help Panel-", screenW * 0.4325, screenH * 0.1050, screenW * 0.9875, screenH * 0.1500, tocolor(0, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, true, false, false) dxDrawRectangle(screenW * 0.1175, screenH * 0.1583, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawRectangle(screenW * 0.4063, screenH * 0.1583, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawText("Roster", 378, 100, 513, 122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawLine((screenW * 0.4063) - 1, (screenH * 0.2083) - 1, (screenW * 0.4063) - 1, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.5825, (screenH * 0.2083) - 1, (screenW * 0.4063) - 1, (screenH * 0.2083) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawLine((screenW * 0.4063) - 1, screenH * 0.5733, screenW * 0.5825, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.5825, screenH * 0.5733, screenW * 0.5825, (screenH * 0.2083) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawRectangle(screenW * 0.4063, screenH * 0.2083, screenW * 0.1762, screenH * 0.3650, tocolor(26, 16, 27, 150), true) dxDrawText("Rules", 139, 103, 274, 125, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("[Founders]\nAnonymous\nGamer\n[Admins]\nSmoke\nTeodora\n[Staff]\n Linux\n JayZer", screenW * 0.4500, screenH * 0.2083, screenW * 0.6288, screenH * 0.5733, tocolor(244, 180, 205, 251), 1.00, "default", "left", "top", false, true, true, false, false) dxDrawText("", 94, 128, 94, 129, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText("-Don't camp\n-Don't Hack\n-Don't GK in Shooter ! (GK=Kick)\n-Don't use any nick of admins 'ZF'\n-Respect the admins.\n-Don't insult anyone.\n-Don't ask for admin rights, Go apply on forum, if you don't have any answre Just WAIT.\n-Don't Ask Admins to vote vor you .\n", screenW * 0.1175, screenH * 0.2150, screenW * 0.3975, screenH * 0.5733, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", true, true, true, false, false) dxDrawRectangle(screenW * 0.1113, screenH * 0.2083, screenW * 0.2825, screenH * 0.2683, tocolor(26, 16, 27, 150), true) dxDrawLine(94, 513, 705, 513, tocolor(255, 255, 255, 255), 1, true) dxDrawText("Roster", 378, 100, 513, 122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawRectangle(screenW * 0.6288, screenH * 0.1533, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawLine((screenW * 0.5938) - 1, (screenH * 0.2100) - 1, (screenW * 0.5938) - 1, screenH * 0.8550, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.8688, (screenH * 0.2100) - 1, (screenW * 0.5938) - 1, (screenH * 0.2100) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawLine((screenW * 0.5938) - 1, screenH * 0.8550, screenW * 0.8688, screenH * 0.8550, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.8688, screenH * 0.8550, screenW * 0.8688, (screenH * 0.2100) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawRectangle(screenW * 0.5938, screenH * 0.2100, screenW * 0.2750, screenH * 0.6450, tocolor(26, 16, 27, 150), true) dxDrawText("FAQ", 557 + 1, 100 + 1, 654 + 1, 152 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("FAQ", 557, 100, 654, 152, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Q)What is the forum\nA)http://Zerofear.boards.net\nQ) is the teaming allowed?\nA) Yes,it is.\nQ) A admin kicked,muted,banned me !\nA) Sure,your rule break.if you see any abuse about admins/staff please report in game or on forum.\nQ) How can i invite players to my team ?\nA) tap : /team invite [playername]\nQ) I would like to join ZF staff ?\nA) Sure , Go see the forum (zerofear.boards.net)\nQ) How can i accept invite ?\nA) Tap : /team accept\nQ) How to decline invite ?\nA) Tap : /team decline\n", (screenW * 0.5950) + 1, (screenH * 0.2250) + 1, (screenW * 0.8700) + 1, (screenH * 0.8683) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, true, true, false, false) dxDrawRectangle(screenW * 0.1237, screenH * 0.5633, screenW * 0.1550, screenH * 0.0367, tocolor(26, 16, 27, 150), true) dxDrawRectangle(screenW * 0.1237, screenH * 0.6067, screenW * 0.4637, screenH * 0.2450, tocolor(26, 16, 27, 150), true) dxDrawText("Premuim", 138, 338, 273, 360, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("why to donate?\n1) get your rewards(money,vip skin)\n2)Get Premuim Panel(premuim cars,lights)\n3)Get many features as the vip wheels.\n4)Ask admin for the others features\n5)with 1$ you get 1 week vip features.\n6)ask admin if help needed", 101, 369, 460, 503, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) end bindKey("F7","down", function() dxShowing = not dxShowing showCursor( dxShowing ) if dxShowing then addEventHandler( "onClientRender",root, renderDX ) else removeEventHandler( "onClientRender",root, renderDX ) end end ) Try it. Link to comment
Simple0x47 Posted July 25, 2017 Share Posted July 25, 2017 I've arrived pretty late but huh. -- VARIABLES -- SCREEN SIZE local screenW, screenH = guiGetScreenSize() -- STATUS local status = false -- FUNCTIONS -- RENDERER function render() dxDrawLine(94 - 1, 60 - 1, 94 - 1, 540, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(706, 60 - 1, 94 - 1, 60 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(94 - 1, 540, 706, 540, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(706, 540, 706, 60 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle((screenW - 612) / 2, (screenH - 480) / 2, 612, 480, tocolor(100, 173, 247, 200), false) dxDrawLine(94, 90, 705, 90, tocolor(255, 255, 255, 255), 1, true) dxDrawText("Zero Fear -Help Panel-", screenW * 0.4325, screenH * 0.1050, screenW * 0.9875, screenH * 0.1500, tocolor(0, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, true, false, false) dxDrawRectangle(screenW * 0.1175, screenH * 0.1583, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawRectangle(screenW * 0.4063, screenH * 0.1583, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawText("Roster", 378, 100, 513, 122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawLine((screenW * 0.4063) - 1, (screenH * 0.2083) - 1, (screenW * 0.4063) - 1, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.5825, (screenH * 0.2083) - 1, (screenW * 0.4063) - 1, (screenH * 0.2083) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawLine((screenW * 0.4063) - 1, screenH * 0.5733, screenW * 0.5825, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.5825, screenH * 0.5733, screenW * 0.5825, (screenH * 0.2083) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawRectangle(screenW * 0.4063, screenH * 0.2083, screenW * 0.1762, screenH * 0.3650, tocolor(26, 16, 27, 150), true) dxDrawText("Rules", 139, 103, 274, 125, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("[Founders]\nAnonymous\nGamer\n[Admins]\nSmoke\nTeodora\n[Staff]\n Linux\n JayZer", screenW * 0.4500, screenH * 0.2083, screenW * 0.6288, screenH * 0.5733, tocolor(244, 180, 205, 251), 1.00, "default", "left", "top", false, true, true, false, false) dxDrawText("", 94, 128, 94, 129, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText("-Don't camp\n-Don't Hack\n-Don't GK in Shooter ! (GK=Kick)\n-Don't use any nick of admins 'ZF'\n-Respect the admins.\n-Don't insult anyone.\n-Don't ask for admin rights, Go apply on forum, if you don't have any answre Just WAIT.\n-Don't Ask Admins to vote vor you .\n", screenW * 0.1175, screenH * 0.2150, screenW * 0.3975, screenH * 0.5733, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", true, true, true, false, false) dxDrawRectangle(screenW * 0.1113, screenH * 0.2083, screenW * 0.2825, screenH * 0.2683, tocolor(26, 16, 27, 150), true) dxDrawLine(94, 513, 705, 513, tocolor(255, 255, 255, 255), 1, true) dxDrawText("Roster", 378, 100, 513, 122, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawRectangle(screenW * 0.6288, screenH * 0.1533, screenW * 0.1762, screenH * 0.0500, tocolor(26, 16, 27, 150), true) dxDrawLine((screenW * 0.5938) - 1, (screenH * 0.2100) - 1, (screenW * 0.5938) - 1, screenH * 0.8550, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.8688, (screenH * 0.2100) - 1, (screenW * 0.5938) - 1, (screenH * 0.2100) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawLine((screenW * 0.5938) - 1, screenH * 0.8550, screenW * 0.8688, screenH * 0.8550, tocolor(0, 0, 0, 255), 1, true) dxDrawLine(screenW * 0.8688, screenH * 0.8550, screenW * 0.8688, (screenH * 0.2100) - 1, tocolor(0, 0, 0, 255), 1, true) dxDrawRectangle(screenW * 0.5938, screenH * 0.2100, screenW * 0.2750, screenH * 0.6450, tocolor(26, 16, 27, 150), true) dxDrawText("FAQ", 557 + 1, 100 + 1, 654 + 1, 152 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("FAQ", 557, 100, 654, 152, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Q)What is the forum\nA)http://Zerofear.boards.net\nQ) is the teaming allowed?\nA) Yes,it is.\nQ) A admin kicked,muted,banned me !\nA) Sure,your rule break.if you see any abuse about admins/staff please report in game or on forum.\nQ) How can i invite players to my team ?\nA) tap : /team invite [playername]\nQ) I would like to join ZF staff ?\nA) Sure , Go see the forum (zerofear.boards.net)\nQ) How can i accept invite ?\nA) Tap : /team accept\nQ) How to decline invite ?\nA) Tap : /team decline\n", (screenW * 0.5950) + 1, (screenH * 0.2250) + 1, (screenW * 0.8700) + 1, (screenH * 0.8683) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, true, true, false, false) dxDrawRectangle(screenW * 0.1237, screenH * 0.5633, screenW * 0.1550, screenH * 0.0367, tocolor(26, 16, 27, 150), true) dxDrawRectangle(screenW * 0.1237, screenH * 0.6067, screenW * 0.4637, screenH * 0.2450, tocolor(26, 16, 27, 150), true) dxDrawText("Premuim", 138, 338, 273, 360, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("why to donate?\n1) get your rewards(money,vip skin)\n2)Get Premuim Panel(premuim cars,lights)\n3)Get many features as the vip wheels.\n4)Ask admin for the others features\n5)with 1$ you get 1 week vip features.\n6)ask admin if help needed", 101, 369, 460, 503, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false) end -- TOGGLE HELP function toggle_help() if ( status ) then status = false showCursor( false ) removeEventHandler( "onClientRender", root, render ) else status = true showCursor( true ) addEventHandler( "onClientRender", root, render ) end end -- BIND KEYS -- TOGGLE PANEL bindKey( "F7", "down", toggle_help ) 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