Jump to content

[HELP]Radar Showing Before login / defult radar showing


Best-Killer1

Recommended Posts

Radar Showing Before login and defult radar showing with the new radar :) any help pls ? this the code

Menu = {} 
Menu.__index = Menu 
Menu.instances = {} 
  
function onClientResourceStart() 
     
    Pages = {} 
     
    Pages.MAPA = {} 
    Pages.MAPA.map = Map.new(x*30,y*30,x*1306,y*708) 
    Pages.MAPA.map:setColor(255,255,255,200) 
     
    Pages.MAPA.radar = Map.new(x*20,y*563,x*318,y*185) 
    Pages.MAPA.radar:setColor(255,255,255,200) 
    Pages.MAPA.radar.style = 1 
    Pages.MAPA.radar.blipSize = x*20 
    Pages.MAPA.radar:setVisible(true) 
     
    MapaSwitch = function() 
        Pages.MAPA.map:setVisible(not Pages.MAPA.map.visible) 
        Pages.MAPA.radar:setVisible(not Pages.MAPA.map.visible) 
        showChat(not Pages.MAPA.map.visible) 
    end 
     
    if(not isKeyBound('F11', 'down', MapaSwitch)) then  
        bindKey('F11', 'down', MapaSwitch)  
    end 
     
    setPlayerHudComponentVisible("radar",false) 
    toggleControl("radar",false) 
end 
addEventHandler("onClientResourceStart",resourceRoot,onClientResourceStart) 
  
function onClientResourceStop() 
    setPlayerHudComponentVisible("radar",true) 
    toggleControl("radar",true) 
end 
addEventHandler("onClientResourceStop",resourceRoot,onClientResourceStop) 
  
function isKeyBound(key, keyState, handler) 
    local handlers = getFunctionsBoundToKey(key) 
    for k,v in pairs(handlers or {}) do 
        if(v == handler) then 
            return true 
        end 
    end 
    return false 
end 

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...