myPed = createPed(0, 1969.7, -1458, 13.3)function onPedClick(button, state, absX, absY, wx, wy, wz, element, clickedelement) if button == \"right\" and state == \"down\" and clickedelement then local x, y, z = getElementPosition(localPlayer) if (element == myPed) then if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then guiSetVisible(myGUIWindow, true) end end endendoutputChatBox(\"Siker\")addEventHandler(\"onClientClick\", root, onPedClick)
myPed = createPed(0, 1969.7, -1458, 13.3)function onPedClick(button, state, absX, absY, wx, wy, wz, element, clickedelement) if button == \"right\" 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(\"Siker\") end end endendaddEventHandler(\"onClientClick\", root, onPedClick)
myPed = createPed(0, 1969.7, -1458, 13.3)function onPedClick(button, state, absX, absY, wx, wy, wz, clickedelement) if button == \"right\" 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(\"Siker\") end end endendaddEventHandler(\"onClientClick\", root, onPedClick)
myPed = createPed(0, 1969.7, -1458, 13.3)function onPedClick(button, state, absX, absY, wx, wy, wz, clickedelement) if button == \"right\" 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(\"Siker\") end end endendaddEventHandler(\"onClientClick\", root, onPedClick)function pedClickShow() guiSetVisible(myGUIWindow, false)endaddEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), pedClickShow)