-
Posts
14 -
Joined
-
Last visited
Everything posted by MKH
-
Hello, i just wanna to know, first i made a simple dx gui, my resolution was 1366x786 i think, and my friend's resolution was 1600x900, the gui if looking fine for me because i made it, but its not fine for my friends, i just wanna to know how to draw dx for all resolutions
-
How so ?
-
You mean ' Bots ' If yes, i think you can't
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=4871
-
[REL] Anti-vehicle zones (prevent spawning or entering)
MKH replied to Dutchman101's topic in Resources
it mean RELEASE -
Yoo guys, i've downloaded the dxgui script, and i tested it, i made a gui, but when i tried to make the button it says INFO: dxCreateButton didn't find the main theme. I've used this format exports.dxGUI:dxCreateButton(0,0,250,300,"test!",tocolor(255,0,0,255),"default-bold","Orange") when i start the resource, i can see the dx gui but the button is not visible ! Where's the problem
-
Yeah but this is not my problem, my problem is the places of ' Rectangles ' its fine for my resolution but not fine for others, note i'm using 1366x768 and my friend using 1600x900 resolution
-
Yoo guys, i'm making DX Scripts but i found a problem with them when my friend joined my server and saw the DX windows Well this is a screenshot how i see them And this is a screenshot how my friend saw them Well i use these functions local screenW, screenH = guiGetScreenSize() function dxGui () dxDrawRectangle((screenW - 447) / 2, (screenH - 63) / 5, 447, 63, tocolor(252, 120, 2, 255), false) dxDrawRectangle((screenW - 438) / 2, (screenH - 363) / 1.99, 438, 363, tocolor(0, 0, 0, 255), false) dxDrawRectangle((screenW - 427) / 2, (screenH - 18) / 3.6, 427, 18, tocolor(0, 0, 0, 255), true) dxDrawRectangle((screenW - 27) / 1.53, (screenH - 192) / 2.6, 27, 192, tocolor(0, 0, 0, 255), true) dxDrawRectangle((screenW - 20) / 2.9, (screenH - 187) / 2.6, 20, 187, tocolor(0, 0, 0, 255), true) dxDrawRectangle((screenW - 438) / 2, (screenH - 24) / 1.9, 438, 24, tocolor(0, 0, 0, 255), true) dxDrawText("Vehciles", (screenW - 179) / 2, (screenH - 37) / 4.9, ((screenW - 179) / 2) + 179, ( (screenH - 37) / 4.9) + 37, tocolor(255, 255, 255, 255), 1.30, "bankgothic", "left", "top", false, false, true, false, false) dxDrawRectangle((screenW - 405) / 2, (screenH - 53) / 1.67, 405, 53, tocolor(252, 120, 2, 255), true) dxDrawRectangle((screenW - 405) / 2, (screenH - 53) / 1.44, 405, 53, tocolor(252, 120, 2, 255), true) dxDrawText("Spawn", (screenW - 64) / 2, (screenH - 29) / 1.67, ((screenW - 64) / 2) + 64, ( (screenH - 29) / 1.67) + 29, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Cancel", (screenW - 64) / 2, (screenH - 29) / 1.44, ((screenW - 64) / 2) + 64, ( (screenH - 29) / 1.44) + 29, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) end function createVehicleChooserGUI() if (isElement(wndVehicle)) then if (guiGetVisible(wndVehicle)) then return end guiSetAlpha(gridVehicle, 0) end windowWidth, windowHeight = 321, 338 windowX, windowY = (screenWidth / 2) - (windowWidth / 2), (screenHeight / 2) - (windowHeight / 2) wndVehicle = guiCreateWindow(windowX, windowY, windowWidth, windowHeight, "Select Vehicle",false) guiSetAlpha(wndVehicle, 0) gridVehicle = guiCreateGridList((screenW - 415) / 2, (screenH - 187) / 2.7, 415, 187, false) vehicleColumn = guiGridListAddColumn(gridVehicle,"Vehicle",0.8) vehicleSpawn = guiCreateButton((screenW - 405) / 2, (screenH - 50) / 1.67, 405, 50, "Spawn", false, wndVehicle) vehicleClose = guiCreateButton((screenW - 405) / 2, (screenH - 50) / 1.44, 405, 50, "close", false, wndVehicle) -- guiSetAlpha(vehicleClose, 1) addEventHandler("onClientGUIClick", vehicleSpawn, onPlayerSelectVehicle) addEventHandler("onClientGUIClick", vehicleClose, onPlayerExitVehicleGUI) end guiGetVisible(gridVehicle, true) addEventHandler("onClientPreRender", getRootElement(), dxGui); Any solution please !
-
Anyone got host free host from this website guys ?
-
You can unhash it, download sqlbrowser or any program to open registry.db and un-hash it If you need any help PM me
-
Gooood Job, im waiting for more scripts from you <3
-
Idk but try this function login (plr) kickPlayer(plr, "this command not allowed") end addCommandHandler("login", login)