checkResolutionOnStart = function() local screenX, screenY = guiGetScreenSize() if screenX <= 640 and screenY <= 480 then outputChatBox("WARNING: You are running on a low resolution. Some GUI may be placed or appear incorrectly.") end end addEventHandler("onClientResourceStart", resourceRoot, checkResolutionOnStart) gui = function() bindKey("m", "down", toggleCursor) mainWindow = guiCreateWindow(25, 195, 150, 215, "my gui", false) guiWindowSetSizable(mainWindow, false) guiSetAlpha(mainWindow, 1) guiSetProperty(mainWindow, "CaptionColour", "FF980DF0") button1 = guiCreateButton(20, 106, 109, 26, "make vehicle invincible", false, mainWindow) addEventHandler("onClientGUIClick", button1, tank, false) button2 = guiCreateButton(20, 142, 107, 20, "Invincible Turismo", false, mainWindow) addEventHandler("onClientGUIClick", button2, tur, false) edit1 = guiCreateEdit(19, 75, 76, 25, "", false, mainWindow) button3 = guiCreateButton(99, 76, 27, 25, "OK", false, mainWindow) addEventHandler("onClientGUIClick", button3, okbtn, false) lable1 = guiCreateLabel(29, 23, 94, 18, "Name the vehicle", false, mainWindow) lable2 = guiCreateLabel(29, 37, 97, 17, "you want below.", false, mainWindow) end addEventHandler("onClientResourceStart", getRootElement(), gui) toggleCursor = function() local l_3_0 = isCursorShowing() local l_3_1 = not l_3_0 showCursor(l_3_1) end addCommandHandler("c", toggleCursor) window1 = function() button = guiCreateButton(0.7, 0.1, 0.2, 0.1, "OK", true) editBox = guiCreateEdit(0.3, 0.1, 0.4, 0.1, "", true) guiEditSetMaxLength(editBox, 128) outputEditBox = function() local l_5_0 = guiGetText(editBox) triggerServerEvent("onGreeting", getLocalPlayer(), l_5_0) destroyElement(button) destroyElement(editBox) end addEventHandler("onClientGUIClick", okbtn, outputEditBox) end okbtn = function() local l_5_0 = guiGetText(edit1) triggerServerEvent("onGreeting", getLocalPlayer(), l_5_0) showCursor(false) end tur = function() triggerServerEvent("myturis", getLocalPlayer()) end tank = function() triggerServerEvent("invince", getLocalPlayer()) end tankvehicle = function() local l_8_0 = getPedOccupiedVehicle(getLocalPlayer()) if l_8_0 then setVehicleDamageProof(l_8_0, true) setVehicleDoorsUndamageable(l_8_0, true) outputChatBox("vehicle is indestructible") else outputChatBox("fail") end end