BorderLine Posted October 16, 2012 Posted October 16, 2012 Hi everyone 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
Renkon Posted October 16, 2012 Posted October 16, 2012 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)
BorderLine Posted October 16, 2012 Author Posted October 16, 2012 thanks man. i have a little problems with some events arguments, local players and root. btw. thanks is working
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now