Jump to content

isPlayerMapVisible problem


BorderLine

Recommended Posts

Hi everyone :D

i have this problem.

dont remove the hud when i open f11 to see the map.

I dont know very good how use this function

my code

function starthud() 
addEventHandler("onClientRender", root, DXdraw) 
end 
addEventHandler("onClientResourceStart",root,starthud) 
  
  
function checkmap() 
  
if isPlayerMapVisible() == true then 
removeEventHandler("onClientRender", getLocalPlayer(), DXdraw) 
end 
end 
addEventHandler("onClientRender",root, checkmap) 
  

Thanks for your time

Link to comment
function starthud() 
addEventHandler("onClientRender", root, DXdraw) 
end 
addEventHandler("onClientResourceStart",root,starthud) 
  
  
function checkmap() 
  
if isPlayerMapVisible() then 
removeEventHandler("onClientRender", root, DXdraw) 
end 
end 
addEventHandler("onClientRender",root, checkmap) 
  

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