Jump to content

Mr.Hugin

Members
  • Posts

    157
  • Joined

  • Last visited

  • Days Won

    3

Mr.Hugin last won the day on May 27

Mr.Hugin had the most liked content!

3 Followers

Recent Profile Visitors

4,109 profile views

Mr.Hugin's Achievements

Chump

Chump (17/54)

36

Reputation

  1. وعليكم السلام فيك تجرب كذا -------- local screenW, screenH = guiGetScreenSize() -------- bool = false -------- function Panel() if bool == true then dxDrawLine(318 - 1, 113 - 1, 318 - 1, 619, tocolor(173, 0, 146, 202), 1, false) dxDrawLine(1012, 113 - 1, 318 - 1, 113 - 1, tocolor(173, 0, 146, 202), 1, false) dxDrawLine(318 - 1, 619, 1012, 619, tocolor(173, 0, 146, 202), 1, false) dxDrawLine(1012, 619, 1012, 113 - 1, tocolor(173, 0, 146, 202), 1, false) dxDrawRectangle(318, 113, 694, 506, tocolor(1, 0, 1, 202), false) dxDrawRectangle(359, 142, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.3492, screenH * 0.1849, screenW * 0.0000, screenH * 0.0221, tocolor(4, 2, 7, 220), true) dxDrawText("Goving سيرفر", (screenW * 0.2335) - 1, (screenH * 0.7773) - 1, (screenW * 0.7408) - 1, (screenH * 0.8060) - 1, tocolor(0, 0, 0, 254), 1.80, "default-bold", "center", "center", false, false, false, true, false) dxDrawText("Goving سيرفر", (screenW * 0.2335) + 1, (screenH * 0.7773) - 1, (screenW * 0.7408) + 1, (screenH * 0.8060) - 1, tocolor(0, 0, 0, 254), 1.80, "default-bold", "center", "center", false, false, false, true, false) dxDrawText("Goving سيرفر", (screenW * 0.2335) - 1, (screenH * 0.7773) + 1, (screenW * 0.7408) - 1, (screenH * 0.8060) + 1, tocolor(0, 0, 0, 254), 1.80, "default-bold", "center", "center", false, false, false, true, false) dxDrawText("Goving سيرفر", (screenW * 0.2335) + 1, (screenH * 0.7773) + 1, (screenW * 0.7408) + 1, (screenH * 0.8060) + 1, tocolor(0, 0, 0, 254), 1.80, "default-bold", "center", "center", false, false, false, true, false) dxDrawText("Goving سيرفر", screenW * 0.2335, screenH * 0.7773, screenW * 0.7408, screenH * 0.8060, tocolor(151, 255, 185, 245), 1.80, "default-bold", "center", "center", false, false, false, true, false) dxDrawText("اللوحة الرئيسية", (screenW * 0.2372) - 1, (screenH * 0.1484) - 1, (screenW * 0.7372) - 1, (screenH * 0.1979) - 1, tocolor(58, 1, 1, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false) dxDrawText("اللوحة الرئيسية", (screenW * 0.2372) + 1, (screenH * 0.1484) - 1, (screenW * 0.7372) + 1, (screenH * 0.1979) - 1, tocolor(58, 1, 1, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false) dxDrawText("اللوحة الرئيسية", (screenW * 0.2372) - 1, (screenH * 0.1484) + 1, (screenW * 0.7372) - 1, (screenH * 0.1979) + 1, tocolor(58, 1, 1, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false) dxDrawText("اللوحة الرئيسية", (screenW * 0.2372) + 1, (screenH * 0.1484) + 1, (screenW * 0.7372) + 1, (screenH * 0.1979) + 1, tocolor(58, 1, 1, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false) dxDrawText("اللوحة الرئيسية", screenW * 0.2372, screenH * 0.1484, screenW * 0.7372, screenH * 0.1979, tocolor(217, 67, 254, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false) end end -------- GUIEditor = { button = {} } GUIEditor.button[1] = guiCreateButton(0.24, 0.23, 0.11, 0.06, "معلومات الشخصية", true) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "F5FF97EE") guiSetVisible(GUIEditor.button[1], false) GUIEditor.button[2] = guiCreateButton(0.24, 0.30, 0.11, 0.06, "معلومات الشخصية", true) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "F5FF97EE") guiSetVisible(GUIEditor.button[2], false) GUIEditor.button[3] = guiCreateButton(0.24, 0.36, 0.11, 0.06, "معلومات الشخصية", true) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "F5FF97EE") guiSetVisible(GUIEditor.button[3], false) GUIEditor.button[4] = guiCreateButton(0.24, 0.30, 0.11, 0.06, "معلومات الشخصية", true) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "F5FF97EE") guiSetVisible(GUIEditor.button[7], false) GUIEditor.button[4] = guiCreateButton(0.24, 0.50, 0.11, 0.06, "معلومات الشخصية", true) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "F5FF97EE") guiSetVisible(GUIEditor.button[5], false) GUIEditor.button[6] = guiCreateButton(0.24, 0.57, 0.11, 0.06, "معلومات الشخصية", true) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "F5FF97EE") guiSetVisible(GUIEditor.button[6], false) GUIEditor.button[7] = guiCreateButton(0.24, 0.43, 0.11, 0.06, "معلومات الشخصية", true) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "F5FF97EE") guiSetVisible(GUIEditor.button[7], false) GUIEditor.button[8] = guiCreateButton(0.24, 0.64, 0.11, 0.06, "معلومات الشخصية", true) guiSetFont(GUIEditor.button[8], "default-bold-small") guiSetProperty(GUIEditor.button[8], "NormalTextColour", "F5FF97EE") -------- function OpenPanel() bool = not bool if removeEventHandler("onClientRender", root, Panel) then removeEventHandler("onClientRender", root, Panel) guiSetVisible(GUIEditor.button[1], false) guiSetVisible(GUIEditor.button[2], false) guiSetVisible(GUIEditor.button[3], false) guiSetVisible(GUIEditor.button[4], false) guiSetVisible(GUIEditor.button[5], false) guiSetVisible(GUIEditor.button[6], false) guiSetVisible(GUIEditor.button[7], false) guiSetVisible(GUIEditor.button[8], false) showCursor(false) else addEventHandler("onClientRender", root, Panel) guiSetVisible(GUIEditor.button[1], true) guiSetVisible(GUIEditor.button[2], true) guiSetVisible(GUIEditor.button[3], true) guiSetVisible(GUIEditor.button[4], true) guiSetVisible(GUIEditor.button[5], true) guiSetVisible(GUIEditor.button[6], true) guiSetVisible(GUIEditor.button[7], true) guiSetVisible(GUIEditor.button[8], true) showCursor(true) end end bindKey("F5", "down", OpenPanel) و الأزرار فيك تكملها عادي بشكل طبعي تضيفها تحت فتح لوحة وتكمل وحاول انك تتعلم اساسيات البرمجة ولأشياء هاذي عشان مو دايم حد رح يساعدك بتوفيق لك
  2. الله يعطيك العافيه شروحك دايم جميله من شخص اجمل يعطيك العافيه تقبل مروري
  3. Mr.Hugin

    [HELP]

    addEventHandler("onPlayerMarkerHit", getRootElement(), function( mFirstMis, matchingDimension ) if (matchingDimension) then destroyElement( mFirstMis ) destroyElement( bFirstMis ) end end) try this Replace what you have and try
  4. Mr.Hugin

    [HELP]

    --Client Side local sx,sy = guiGetScreenSize();--1920,1080 local relx,rely = sx/1920,sy/1080; ----------- IsCardShop = false local money = getPlayerMoney(localPlayer) local Cardlist = { [1] = {411, "Jogosítvány", 1000}, [2] = {482, "Jogosítvány", 10000}, }; color = tocolor(41, 173, 21, 255) ----------- function Panel() if IsCardShop == true then dxDrawRectangle(sx*.35, sy*.35, sx*.30, sy*.05, tocolor(0, 0, 0, 200))--Fejléc dxDrawText("Jogosítvány", sx*.50, sy*.035, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*.35, sy*.40, sx*.30, sy*.20, tocolor(30, 40, 50, 250))-- panel dxDrawRectangle(sx*.40, sy*.47, sx*.06, sy*.05, color1 or color)--gomb1 dxDrawText("Megvétel", sx*.36, sy*.27, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Legális 1000$", sx*.36, sy*.19, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*0.55, sy*0.47, sx*0.06, sy*0.05, color2 or color)--gomb1 dxDrawText("Megvétel", sx*.66, sy*.27, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Ilegális 10000$", sx*.66, sy*.19, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Összeged: "..money.."$", sx*.52, sy*.40, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat ----------- 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 ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end ---------- if isMouseInPosition(sx*.40, sy*.47, sx*.06, sy*.05) then color1 = tocolor(88, 0, 0, 50) else color1 = color end ----------- if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then color2 = tocolor(88, 0, 0, 50) else color2 = color end end end ---------- function OpenWindow() IsCardShop = not IsCardShop if removeEventHandler("onClientRender", root, Panel) then removeEventHandler("onClientRender", root, Panel) showCursor(false) else addEventHandler("onClientRender", root, Panel) showCursor(true) end end bindKey("F3", "down", OpenWindow) ---------- addEventHandler("onClientClick", root, function(button,state) if IsCardShop == true then if ( button == "left" and state == "down" ) then if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then local yourMoney = getPlayerMoney() if ( yourMoney >= 10000) then takePlayerMoney(10000) triggerServerEvent("car", getLocalPlayer()) else outputChatBox("* You Don't Have Enough Money",255,0,0,true) --outputChatBox("Menj be a Markerbe a vizsga elkezdéséhez") end end end end end) ---------- local thePed = createPed(579, 336.8766784668, -1358.7130126953, 14.5078125, 280) addEventHandler("onClientClick", root, function(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if (button == "right") and (state == "up") then if isElement(clickedWorld) and clickedWorld == thePed then IsCardShop = not IsCardShop removeEventHandler("onClientRender", root, Panel) if IsCardShop then addEventHandler("onClientRender", root, Panel) end end end end) bindKey("BACKSPACE","down",function() if IsCardShop == true then IsCardShop = false end end) --Server Side vehicle = {} -------- addEvent("car", true) addEventHandler("car", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(599, x, y, z) --599 is the vehicle's hands. Put any vehicle you want warpPedIntoVehicle(source, vehicle[source]) end) try this You what do you want, I do not understand you Do you want a panel to open in Marker
  5. Mr.Hugin

    [HELP]

    I don't know my friend, but I'm waiting for someone to come, I'm a little busy
  6. Mr.Hugin

    [HELP]

    -- Server Side addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("car", true) addEventHandler("car", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(599, x, y, z) --599 is the vehicle's hands. Put any vehicle you want warpPedIntoVehicle(source, vehicle[source]) end) try this try this
  7. Mr.Hugin

    [HELP]

    -- Client Side local sx,sy = guiGetScreenSize();--1920,1080 local relx,rely = sx/1920,sy/1080; ----------- IsCardShop = false local money = getPlayerMoney(localPlayer) local Cardlist = { [1] = {411, "Jogosítvány", 1000}, [2] = {482, "Jogosítvány", 10000}, }; color = tocolor(41, 173, 21, 255) ----------- function Panel() if IsCardShop == true then dxDrawRectangle(sx*.35, sy*.35, sx*.30, sy*.05, tocolor(0, 0, 0, 200))--Fejléc dxDrawText("Jogosítvány", sx*.50, sy*.035, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*.35, sy*.40, sx*.30, sy*.20, tocolor(30, 40, 50, 250))-- panel dxDrawRectangle(sx*.40, sy*.47, sx*.06, sy*.05, color1 or color)--gomb1 dxDrawText("Megvétel", sx*.36, sy*.27, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Legális 1000$", sx*.36, sy*.19, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*0.55, sy*0.47, sx*0.06, sy*0.05, color2 or color)--gomb1 dxDrawText("Megvétel", sx*.66, sy*.27, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Ilegális 10000$", sx*.66, sy*.19, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Összeged: "..money.."$", sx*.52, sy*.40, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat ----------- 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 ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end ----------- if isMouseInPosition(sx*.40, sy*.47, sx*.06, sy*.05) then color1 = tocolor(34, 110, 23, 255) else color1 = color end ----------- if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then color2 = tocolor(34, 110, 23, 255) else color2 = color end end end ----------- function OpenWindow() IsCardShop = not IsCardShop if removeEventHandler("onClientRender", root, Panel) then removeEventHandler("onClientRender", root, Panel) showCursor(false) else addEventHandler("onClientRender", root, Panel) showCursor(true) end end ---------- addEventHandler("onClientClick", root, function(button,state) if IsCardShop then if ( button == "left" and state == "down" ) then if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then triggerServerEvent("car", getLocalPlayer()) IsCardShop = false outputChatBox("Menj be a Markerbe a vizsga elkezdéséhez") end end end end) ---------- local thePed = createPed(579, 336.8766784668, -1358.7130126953, 14.5078125, 280) addEventHandler("onClientClick", root, function(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if (button == "right") and (state == "up") then if isElement(clickedWorld) and clickedWorld == thePed then IsCardShop = not IsCardShop removeEventHandler("onClientRender", root, Panel) if IsCardShop then addEventHandler("onClientRender", root, Panel) end end end end) bindKey("BACKSPACE","down",function() if IsCardShop == true then IsCardShop = false end end)
  8. Mr.Hugin

    [HELP]

    You can put up your code
  9. Mr.Hugin

    [HELP]

    You want it when a player presses a button or you want it in F8
  10. Mr.Hugin

    [HELP]

    I don't understand what you mean, do you want to make a car?
  11. Mr.Hugin

    [HELP]

    It must be available to turn on the button or press the divorce Take this as a rule in the DX. If this is not available, the button will not work in any case 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 ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end -------------- addEventHandler("onClientClick", root, function(button,state) if IsCardShop then if ( button == "left" and state == "down" ) then if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then end end end end) It should be like this try this
  12. Mr.Hugin

    [HELP]

    addEventHandler("onClientClick", root, function(button,state) if IsCardShop then if ( button == "left" and state == "down" ) then if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then end end end end) try this There is something that, if it is not there, may not work 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 ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end
  13. Mr.Hugin

    [HELP]

    You mean when I play, he presses the button, a panel appears
  14. Mr.Hugin

    [HELP]

    I do not understand what you're saying
  15. Mr.Hugin

    [HELP]

    not a problem
×
×
  • Create New...