guiWindowSetMovable(ablakid, false)guiWindowSetSizable(ablakid, false)
local ablakid = guiCreateWindow(0.50, 0.50, 0.25, 0.25, \"\", true)
myPed = createPed(0, 1969.7, -1458, 13.3)myGUIWindow = guiCreateWindow ( 0.25, 0.3, 0.5, 0.4, \"Élelmiszerbolt\", true )guiWindowSetMovable(myGUIWindow, false)guiWindowSetSizable(myGUIWindow, false) bezar = guiCreateButton( 0.68, 0.64, 0.05, 0.03, \"Bezár\", true )function ablakclick(button, state, absX, absY, wx, wy, wz, clickedelement) if button == \"left\" and state == \"down\" and clickedelement then local x, y, z = getElementPosition(localPlayer) if (clickedelement == myPed) then if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then guiSetVisible(myGUIWindow, true) outputChatBox(\"ablak aktiválva\") end end endendaddEventHandler(\"onClientClick\", root, ablakclick) function bezarclick(button, state, absX, absY, wx, wy, wz, clickedelement) if button == \"left\" and state == \"down\" and clickedelement then local x, y, z = getElementPosition(localPlayer) if (clickedelement == myPed) then if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then guiSetVisible(bezar, true) outputChatBox(\"bezár gomb aktiválva\") showCursor ( true ) end end endendaddEventHandler(\"onClientClick\", root, bezarclick) function ablakmutat() guiSetVisible(myGUIWindow, false)endaddEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), ablakmutat) function bezarmutat() guiSetVisible(bezar, false)endaddEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), bezarmutat)
myPed = createPed(0, 1969.7, -1458, 13.3)myGUIWindow = guiCreateWindow ( 0.25, 0.3, 0.5, 0.4, \"Élelmiszerbolt\", true )guiWindowSetMovable(myGUIWindow, false)guiWindowSetSizable(myGUIWindow, false) bezar = guiCreateButton( 0.68, 0.64, 0.05, 0.03, \"Bezár\", true, myGUIWindow )function ablakclick(button, state, absX, absY, wx, wy, wz, clickedelement) if button == \"left\" and state == \"down\" and clickedelement then local x, y, z = getElementPosition(localPlayer) if (clickedelement == myPed) then if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then guiSetVisible(myGUIWindow, true) outputChatBox(\"ablak aktiválva\") end end endendaddEventHandler(\"onClientClick\", root, ablakclick) function bezarclick(button, state, absX, absY, wx, wy, wz, clickedelement) if button == \"left\" and state == \"down\" and clickedelement then local x, y, z = getElementPosition(localPlayer) if (clickedelement == myPed) then if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then guiSetVisible(bezar, true) outputChatBox(\"bezár gomb aktiválva\") showCursor ( true ) end end endendaddEventHandler(\"onClientClick\", root, bezarclick) function ablakmutat() guiSetVisible(myGUIWindow, false)endaddEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), ablakmutat) function bezarmutat() guiSetVisible(bezar, false)endaddEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), bezarmutat)
bezar = guiCreateButton( 0.68, 0.64, 0.05, 0.03, \"Bezár\", true)
bezar = guiCreateButton( 0.68, 0.64, 0.05, 0.03, \"Bezár\", true, myGUIWindow )