Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: ismouseinposition
1. IsMouseInPosition Znika obrazek
Witam po klikni?ciu w dane miejsce powinno si? wy?wietli? zdj?cie na ekranie lecz to zdj?cie si? nie wy?wietla tylko mignie na sekund? i si? wy??czy wie kto? mo?e o co chodzi ?



    addEventHandler
("onClientClick", root, function(btn,state)
    if 
btn=="left" and state=="down" then
    local x_6
, y_6 = getCenter(515, -530)
    if 
isMouseIn(x_6, y_6, 515/zoom, 530/zoom) then
    destroyElement
(texture_1) 
    
local x_7, y_7 = getCenter(1920, 1080)
    
dxDrawImage(x_7, y_7, 1920/zoom, 1080/zoom, texture_7, 0, 0, 0, tocolor(255, 255, 255, 255), false)
    
    
end
    end
    end
)






local texture_7 
= dxCreateTexture('img/2panel.png','argb',true,'clamp')


a to jest b??d kt?ry uda?o mi si? namierzy w DB3 https://imgur.com/a/TsHG6nA



124
--         dxDrawImage(x_1, y_1, 1920/zoom, 1080/zoom, texture_1, 0, 0, 0, tocolor(255, 255, 255, 255), false)

2. IsMouseInPosition I Tworzenie edita

addEventHandler
("onClientClick",root, function(button,state)
if 
not state then return end
if isMouseInPosition (797, 605, 319, 56) then
local x_edit
, y_edit = getCenter(304,190)
    
zaloguj=guiCreateEdit(x_edit, y_edit, 304/zoom, 35/zoom, "", false)
    
end
    end
) 


witam mam pytanie jak zrobi? aby po klikni?ciu w pozycji 797, 605, 319, 56 tworzy? si? na ekranie edit.
3. isMouseInPosition
Po klikni?ciu w odpowiednie miejsce ma ?ciemnia? ekran, ale tego nie robi.

function ifPlayerClosePanel(state)

    if 
isMouseInPosition(348, 586, 212, 32) and state == "up" then
        fadeCamera
(false, 5)
            
setTimer(fadeCameraPanelClose, 7000, 1)
    
end
end
addEventHandler
("onClientClick", getRootElement(), ifPlayerClosePanel)


Z debuga wychodzi takie co? :