Jump to content

bug fix pls


Recommended Posts

Bug fix please..

addEventHandler("onClientResourceStart",resourceRoot, 
    function() 
  
    winMapBuy = guiCreateWindow(283,145,693,404,"MapBuyWindow",false) 
    grlMaps = guiCreateGridList(11,32,667,338,false,winMapBuy) 
    guiGridListSetSelectionMode(grlMaps,2) 
    cmdBuyMap = guiCreateButton(14,377,98,17,"Buy ( 5000$ )",false,winMapBuy) 
    guiSetVisible(winMapBuy,false) 
    toggleWindow = false 
    firstStart = false 
    end 
) 
  
function openmapgui() 
if firstStart == false then 
    firstStart = true 
    firstTimer = true 
    start() 
end 
 if toggleWindow == false then 
 toggleWindow = true 
  else 
  toggleWindow = false 
  end 
  showCursor(toggleWindow) 
  guiSetVisible(winMapBuy,toggleWindow) 
end 
addCommandHandler("i",openmapgui) 
  
function RequestMapList() 
triggerServerEvent("eClientRequestMapList",getLocalPlayer()) 
end 
  
function start() 
    if firstTimer == true then 
        firstTimer = false 
        setTimer(RequestMapList,MapRequestInterval,0) 
    end 
end 
  
function GetMapList(mapList) 
  
guiGridListClear(grlMaps) 
  
for list,map in string.gfind(mapList, "::") do 
    maps = string.gsub(mapList,"::", " ") 
    outputDebugString(maps) 
    myrow = guiGridListAddRow(grlMaps) 
    guiGridListSetItemText(grlMaps,myrow,0,map,false,false) 
     
end 
  
end 
addEvent("eGetMapList",true) 
addEventHandler("eGetMapList",getRootElement(),GetMapList) 
addCommandHandler("maps",RequestMapList) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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