Jump to content

como borrar blip


Recommended Posts

como podria borrar el blip por defecto para poner uno nuevo ? aqui mi codigo

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.36,0.225,0.2412,0.6017,"GUI Blips",true) 
guiWindowSetMovable(GUIEditor_Window[1],false) 
guiWindowSetSizable(GUIEditor_Window[1],false) 
GUIEditor_Image[1] = guiCreateStaticImage(34,63,31,26,"images/Blip58.png",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(69,63,105,28,"Buy Blip58",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(33,106,32,30,"images/Blip59.png",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(69,108,105,28,"Buy Blip59",false,GUIEditor_Window[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(33,151,32,32,"images/Blip60.png",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(69,157,105,28,"Buy Blip60",false,GUIEditor_Window[1]) 
GUIEditor_Image[4] = guiCreateStaticImage(33,204,32,31,"images/Blip61.png",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(69,208,105,28,"Buy Blip61",false,GUIEditor_Window[1]) 
GUIEditor_Image[5] = guiCreateStaticImage(33,253,32,27,"images/Blip62.png",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(69,255,105,28,"Buy Blip62",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(31,292,149,18,"GUI Blips by ElMota",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[1],255,255,0) 
GUIEditor_Button[6] = guiCreateButton(68,322,108,28,"Usar el de defecto",false,GUIEditor_Window[1]) 
  
guiSetVisible(GUIEditor_Window[1],false) 
showCursor(false) 
  
bindKey("F7","down",  
function() 
guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
showCursor(guiGetVisible(GUIEditor_Window[1])) 
end 
) 
  
addEventHandler("onClientMouseEnter", root,  
function() 
if source == GUIEditor_Button[1] then 
guiSetText(GUIEditor_Label[1], "Price : 6000") 
guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) 
elseif source == GUIEditor_Button[2] then 
guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) 
guiSetText(GUIEditor_Label[1], "Price : 6000") 
elseif source == GUIEditor_Button[3] then 
guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) 
guiSetText(GUIEditor_Label[1], "Price : 6000") 
elseif source == GUIEditor_Button[4] then 
guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) 
guiSetText(GUIEditor_Label[1], "Price : 6000") 
elseif source == GUIEditor_Button[5] then 
guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) 
guiSetText(GUIEditor_Label[1], "Price : 6000") 
end 
end 
) 
  
addEventHandler("onClientMouseLeave", root,  
function() 
if source == GUIEditor_Button[1] then 
guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) 
guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") 
elseif source == GUIEditor_Button[2] then 
guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) 
guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") 
elseif source == GUIEditor_Button[3] then 
guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) 
guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") 
elseif source == GUIEditor_Button[4] then 
guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) 
guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") 
elseif source == GUIEditor_Button[5] then 
guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) 
guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") 
end 
end 
) 
  
addEventHandler("onClientGUIClick", root,  
function() 
if source == GUIEditor_Button[1] then 
createBlipAttachedTo( localPlayer, 58 ) 
end 
end 
) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...