Namorek

Disable HUD Radar

Recommended Posts

I was not working

My code

function hudChanger ()
   showPlayerHudComponent ( source, "radar", false )
end
addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger )

Share this post


Link to post
just put this client-side:
showPlayerHudComponent("radar", false)

There is no turn off the HUD radar (is Power ON HUD radar)

Share this post


Link to post
just put this client-side:
showPlayerHudComponent("radar", false)

There is no turn off the HUD radar (is Power ON HUD radar)

maybe something is turning it on?

or maybe you messed something up?

put just this ONE line, nothing more as client-side..

Share this post


Link to post

Here's the way:

showPlayerHudComponent("radar", false)

This one hides the radar.

And

showPlayerHudComponent("radar", true)

This one shows the radar.

So True and False determines if the HUD component shows or not.

Share this post


Link to post

:lol:

in server-side :

function hudChanger ()
   showPlayerHudComponent ( source, "radar", false ) 
end
addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger )

Meta :

<meta>
<info author="mR|TurboCow" />
<script src="huds.lua" type="server" />
</meta>

wiki's one, and tested... it works.. For me :shock:

Share this post


Link to post

Namorek, the first script you put already works. Just make a meta.xml, it's one requirement for every script, if you think it still doesn't work.

Share this post


Link to post
:lol:

in server-side :

function hudChanger ()
   showPlayerHudComponent ( source, "radar", false ) 
end
addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger )

Meta :

<meta>
<info author="mR|TurboCow" />
<script src="huds.lua" type="server" />
</meta>

wiki's one, and tested... it works.. For me :shock:

Great Thanks Nice Close HUD radar :D

<script src="huds.lua" [color=#FF0000]type="server" />[/color] This is required

Nice job. Closed Topic

Share this post


Link to post

type="server" is not required if the script is server-side. If script is client-side then type="client" is necessary.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.