function onClick( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, element) if ( element) then local elementType = getElementType ( element ) if elementType == \"player\" and getElementData(element, \"ped:click\") == true then end endendaddEventHandler ( \"onClientClick\", getRootElement(), onClick)
setElementData(ped, \"ped:click\", true)
function onClick( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, element) if ( element) then local elementType = getElementType ( element ) if elementType == \"player\" and getElementData(element, \"ped:click\") == true then end endendaddEventHandler ( \"onClientClick\", getRootElement(), onClick) Aztán setElementDatáz a pednek egy értéket setElementData(ped, \"ped:click\", true)
Köszi!Dupla üzenet összevonva ekkor: 2014. szeptember 09. - 17:12:50És hogy gey GUI ablakot is hozzon elő?Hova írjam hogy guiCreateWindow?
function onClick( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, element) if ( element) then local elementType = getElementType ( element ) if elementType == \"player\" and getElementData(element, \"ped:click\") == true then screenWidth, screenHeight = guiGetScreenSize() windowWidth, windowHeight = 350, 650 x = (screenWidth/2) - (windowWidth/2) y = (screenHeight/2) - (windowHeight/2) Iphone = guiCreateStaticImage(x, y, 340, 600, \"Iphone-Bekapcsolva.png\", false) showCursor(true) Gomb = guiCreateLabel(115, 120, 120, 60, \" \", false, Iphone) Bezaras = guiCreateLabel(150, 540, 120, 60, \" \", false, Iphone) addEventHandler(\"onClientGUIClick\", Gomb, Naptar, false) addEventHandler(\"onClientGUIClick\", Bezaras, Bezaras2, false) end endendaddEventHandler ( \"onClientClick\", getRootElement(), onClick)