Jump to content

[HELP] Disabling Minimap


HeK

Recommended Posts

I'm trying to disable minimap/area name on my login panel, but it is disabled, but when a player logins it's still disabled.

How to fix it?

addEventHandler("onClientResourceStart",resourceRoot, 
function() 
 showPlayerHudComponent("radar" ,false) 
 showPlayerHudComponent("area_name" ,false) 
 end) 

Link to comment

Try this:

  
--Clientside 
  
addEventHandler("onClientResourceStart",root, 
function() 
 showPlayerHudComponent("radar" ,false) 
showChat(false) 
 end) 
  
  
--Serverside 
  
addEventHandler("onPlayerLogin",root, 
function() 
 showPlayerHudComponent("radar" ,true) 
showChat(true) 
 end) 

Link to comment

You are mixing client and server-sided events KraZ...

This will work..

addEventHandler("onPlayerJoin", root, 
function() 
 showPlayerHudComponent(source, "radar" ,false) 
 showPlayerHudComponent(source, "area_name" ,false) 
 end) 
  
addEventHandler("onPlayerLogin", root, 
function() 
 showPlayerHudComponent(source, "radar" ,true) 
 showChat(source, true) 
 showPlayerHudComponent(source, "area_name" ,true) 
 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...