I did it but it's not working. I have in mind that it's because there is a GUI in front of the blip, as I have said on the first topic message, it's supposed to open an image when the player presses a key and at that image a blip should be displayed, showing player's position, I'll paste the whole script so you can check what I'm doing. It's basically a modified map, an image, when a player moves a blip on that image moves along.
myWindow = guiCreateWindow( 100, 0, 600, 600, "asdddasdwds", false )
guiWindowSetSizable( myWindow, false )
guiWindowSetMovable( myWindow, false )
guiSetVisible ( myWindow, false )
myImage = guiCreateStaticImage(9, 18, 581, 572, "radar.png", false, myWindow )
function abriromapa ()
if ( guiGetVisible ( myWindow ) == false ) then
guiSetVisible ( myWindow, true )
else
guiSetVisible ( myWindow, false )
end
end
addCommandHandler( "sadasdddasd", abriromapa )
bindKey( "F11", "down", abriromapa )
function posicao(button,pressOrRelease)
if button == "F11" and pressOrRelease then
local myPlayer = getLocalPlayer ()
local myBlip = createBlipAttachedTo ( myPlayer, 2 )
end
end
addEventHandler("onClientKey", root, posicao)