Hello, I want help in something
for example I created the a map just like F11, once I click on any place on the map it will create a blip on the x, y of the position I choosed, I tried but didn't work..
-- WINDOW is created but it's useless so I removed it from this code.
map = guiCreateStaticImage(10, 25, 700, 685, "map.png", false, window)
-- I CREATED Command handler of opening the gui, etc.
function createDest()
if source ~= map then return end
if isElement(blipImg) then
destroyElement(blipImg)
outputChatBox(getPlayerName(localPlayer).." has removed the group destination.", 0, 255, 0)
return
end
local x, y, worldx, worldy, worldz = getCursorPosition()
local x2, y2 = guiGetPosition(source, false)
if worldx == x2 and worldy == y2 then
outputChatBox(x)
outputChatBox(y)
blipImg = createBlip(x, y, 10, 3, 2, 255, 0, 0, 255, 0)
end
end
addEventHandler("onClientGUIDoubleClick", guiRoot, createDest)