-
Posts
476 -
Joined
-
Last visited
-
Days Won
1
Everything posted by iiv03
-
ابغي مساعده بس والله المود تعبت عنه من اسبوعين
-
آلأسلام عليگم لو سمحتو طلب صغير وابغا سكريبت بسيط : لما 1- لما الاعب يختار السيكن للموتر حقه علي لوحة GUI و هو يدوس right يمشي صور يمين و يسار و اذا حاب يسوي سيكن اللي عجبه ب صوره يدوس علي الصوره اللي هي اتوقع StaticImage ويعطيه سيكن للموتر 2-لما لاعب يدوس يمين و يسار الزرين Right Left الصوره تتغير وتجي الي بعده بدون ماتقولولي TABLE ولا شو انا م افهم ف هذا اشياء و انا دخلت جديد ف عالم برمجه + حافظ كيف اخلي اللوحه تفتح ب زر + تفهموني كيف بس اخلي لاعب لما يضغط عالي الزر ينفظله يعني يعطيه الوظيفة اللي هي function وشكرا ملاحظة بدون ارشال كودات علي الويكي بدي سكربتات جاهز انا شفت كل شكريبتات علي الويكي و طبقت و منجحت اتمنا تفهمو منشوري و تعطوني سكربت و شكرا
-
Yes, but the font will not appear with the panel and I want it to be reflected in the panel. How do I mean if you press the button, the font comes with the panel how?
-
Thanks its working, but how do I make it in the center?
-
How do I use the font in the dxDrawText on the panel?
-
I have designed the GUI drawing panel and open the button and want to do the dx panel with the gui panel which I just programming. I want a script that makes the DX panel open with a ( GUI panel! By Me )?
-
What is probleme?
-
I got error line:22 expeted (to close '(' at line 21) near 'engineImportTXD' please fix this My Client : GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(405, 73, 470, 574, "× [ Skins Cars ] ×", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) left = guiCreateButton(24, 508, 136, 47, "Left", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(24, 508, 136, 47, "Left", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") right = guiCreateButton(314, 508, 136, 47, "Right", false, GUIEditor.window[1]) guiSetFont(right, "default-bold-small") GUIEditor.staticimage[1] = guiCreateStaticImage(103, 58, 266, 412, "skin1.png", false, GUIEditor.window[1]) showCursor(false) end ) addEventHandler("onClientGUIClick", guiCreateStaticImage(103, 58, 266, 412, "skin1.png", false) engineImportTXD(engineLoadTXD("skin1.txd"), 411) engineReplaceModel(engineLoadDFF("skin1.txd"), 411) end) bindKey ("m", "down", function () showCursor(not isCursorShowing()) end)
-
Ok, but I want a script if I click on a player that gives him a skin for a car. Do you help me please?
-
its not working he say : ERROR: Loading script failed: skinecars\client.lua:28 ')' expected near 'false' And line : addEventHandler("onClientGUIClick", guiCreateStaticImage(100, 100, 100, 100, "skin1.png", false),
-
myImage = guiCreateStaticImage(100, 100, 100, 100, "skin1.png", false) addEventHandler("onClientGUIClick", myImage, function skincars() local txd = engineLoadTXD ( "skin1.txd" ) engineImportTXD ( txd, [411] ) local dff = engineLoadDFF ( "skin1.dff", [411] ) engineReplaceModel ( dff, [411] ) end addEventHandler("onClientResourceStart", getRootElement(), skincars) end) Is this true or not? What is the script if the player pressed the picture to give him a skin for a car?
-
I'm telling the third time how to make the button press the next picture changes, I tried this and did not succeed, please help Client-Side : function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function drawWindow() dxDrawRectangle(296, 104, 688, 512, tocolor(0, 0, 0, 180), false) if ( isMouseInPosition(372, 542, 160, 43) ) then-- Left dxDrawRectangle(372, 542, 160, 43, tocolor(0, 0, 0, 255), false) else dxDrawRectangle(372, 542, 160, 43, tocolor(80, 80, 80, 255), false) end if ( isMouseInPosition(783, 542, 160, 43) ) then --Right dxDrawRectangle(783, 542, 160, 43, tocolor(0, 0, 0, 255), false) else dxDrawRectangle(783, 542, 160, 43, tocolor(80, 80, 80, 255), false) end dxDrawRectangle(296, 104, 688, 38, tocolor(80, 80, 80, 255), false) dxDrawText("Left", 370, 542, 532, 585, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Right", 783, 542, 945, 585, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("× [ Skin Cars ] ×", 295, 103, 984, 142, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawImage(493, 161, 295, 361, ":guieditor/images/examples/mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end function addskin ( ) if ( isMouseInPosition(372, 542, 160, 43) ) then triggerServerEvent("onVehicleRandomColor", getLocalPlayer()) if ( isMouseInPosition(783, 542, 160, 43) ) then triggerServerEvent("onPlayerRandomSkin", getLocalPlayer()) end end addEventHandler ( "onClientClick", getRootElement(), addskin ) bindKey("F4","down",function ( ) if ( removeEventHandler("onClientRender",root,drawWindow) ) then removeEventHandler("onClientRender",root,drawWindow) addEventHandler("onClientClick", getRootElement(), onButtonClick) removeEventHandler("onClientClick", getRootElement(), onButtonClick) addEventHandler("onClientRender", getRootElement(), drawWindow) showCursor(false) else addEventHandler("onClientRender",root,drawWindow) showCursor(true) end end ) Server : --------------------------------- -- TEST DX PANEL -- AUTHOR: LIME (C) -- CREATED: 31.10.16 --------------------------------- -- GLOBAL VARIABLES local theSkins = {0, 1, 2, 7, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 57, 58, 59, 60, 61, 62, 66, 67, 68, 70, 71, 72, 73, 78, 79, 80, 81, 82, 83, 84, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 120, 121, 122, 123, 124, 125, 126, 127, 128, 132, 133, 134, 135, 136, 137, 142, 143, 144, 146, 147, 153, 154, 155, 156, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 170, 171, 173, 174, 175, 176, 177, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 200, 202, 203, 204, 206, 209, 210, 212, 213, 217, 220, 221, 222, 223, 227, 228, 229, 230, 234, 235, 236, 239, 240, 241, 242, 247, 248, 249, 250, 252, 253, 254, 255, 258, 259, 260, 261, 262, 264, 265, 266, 267, 268, 269, 270, 271, 272, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 311, 312} -- MAIN function randColor() local theVehicle = getPedOccupiedVehicle(source) if (theVehicle) then setVehicleColor(theVehicle, math.random(255), math.random(255), math.random(255)) end end addEvent("onVehicleRandomColor", true) addEventHandler("onVehicleRandomColor", getRootElement(), randColor) function randSkin() setElementModel(source, theSkins[math.random(#theSkins)]) end addEvent("onPlayerRandomSkin", true) addEventHandler("onPlayerRandomSkin", getRootElement(), randSkin) guys please I have gone through this thing. I am 24/24 to build this script. In the other, this has not succeeded.
-
i need my position how ? px and py and the guys say u need x, y, z how ? script : local a, d, c, r, g, b = 210, 140, 30, 210, 140, 30 progress = progress + 0.05 if open == true then x, y, z = interpolateBetween(0, 0, 0, px*240, px*545, 200, progress, "OutBack") end if open == false then x, y, z = interpolateBetween(px*240, px*545, 200, 0, 0, 0, progress, "InBack") if progress >= 1 then removeEventHandler("onClientRender", getRootElement(), drawWindow) end end if isMouseInPosition(px*431, py*309, px*189, py*47) then a, d, c = 240, 170, 60 elseif isMouseInPosition(px*313, py*422, px*214, py*44) then r, g, b = 240, 170, 60 end
-
hello guys i work in guieditor and i get in ( Dimonsions ) x and y and Width and Heght I'm working on script px and py i want to find z how? I know my question is funny
-
Hi guys I want Element / Vehicle and function for me skins for cars and I want this for the dx panel is not gui like image for understand :
-
Okay
-
its ez thank you
-
IDK GIVE ME SCRIPT
-
I want a script when entering the player comes a welcome but he only sees it for each player and must be before the download is not yet loaded if he entered and I do not want him to beat the players who entered before they play Example : I entered the server and came to me welcome in the chat and download startup
-
how dude tell me
-
I do not understand I would tell you how if I took the position of the button right or left and how I set it in the script that you gave me to agree with the button with its image means if you press the button change its image how?
-
i want like these ?
-
How to change the color of this outputChatBox In gamemode race? I have entered all the files I did not find? But I've seen some servers do it image :
-
I have a question about the script that you gave me and I knew the location of the coordinates of the picture, but how do I know the location of the button to change its coordinates?