addEventHandler("onClientResourceStart", resourceRoot, function() mainwindow = guiCreateWindow(25, 150, 149, 260, "my GUI", false) guiWindowSetSizable(mainwindow, false) guiSetAlpha(mainwindow, 1.00) guiSetProperty(mainwindow, "CaptionColour", "FF980DF0") button1 = guiCreateButton(20, 200, 109, 26, "make vehicle invincible", false, mainwindow) addEventHandler ( "onClientGUIClick", button1, tank, false ) button2 = guiCreateButton(20, 230, 109, 20, "Invincible Turismo", false, mainwindow) addEventHandler ( "onClientGUIClick", button2, tur, false ) edit1 = guiCreateEdit(19, 61, 76, 25, "turismo", false, mainwindow) button3 = guiCreateButton(99, 61, 27, 25, "OK", false, mainwindow) addEventHandler ( "onClientGUIClick", button3, okbtn, false ) label1 = guiCreateLabel(29, 23, 94, 18, "Name the vehicle", false, mainwindow) label2 = guiCreateLabel(29, 37, 97, 17, "you want below.", false, mainwindow) edit2 = guiCreateEdit(19, 107, 76, 25, "50", false, mainwindow) edit3 = guiCreateEdit(19, 154, 76, 25, "1000", false, mainwindow) label3 = guiCreateLabel(23, 88, 103, 15, "Set Engine Power", false, mainwindow) label4 = guiCreateLabel(19, 137, 112, 17, "Set Maximum Speed", false, mainwindow) button4 = guiCreateButton(99, 107, 27, 25, "OK", false, mainwindow) addEventHandler ( "onClientGUIClick", button4, okbtn2, false ) button5 = guiCreateButton(99, 154, 27, 25, "OK", false, mainwindow) addEventHandler ( "onClientGUIClick", button5, okbtn3, false ) end ) ------------------------------------------------------------------- function bind() bindKey ( "m", "down", toggleCursor ) end addEventHandler ("onClientResourceStart", getRootElement(), bind) ------------------------------------------------------------------- function toggleCursor () local currentState = isCursorShowing () local oppositeState = not currentState showCursor ( oppositeState ) outputChatBox("toggled Cursor",source) end addCommandHandler ("c", toggleCursor) -------------------------------------------------------------------