Blaawee Posted November 9, 2011 Share Posted November 9, 2011 hi guys i see in some servers admin can hide his name and his health bar but i don't know how , can some one tell me how ? is it a script or including the admin resource, or it's a command ? Link to comment
12p Posted November 9, 2011 Share Posted November 9, 2011 Script. setPlayerNametagShowing Link to comment
Blaawee Posted November 9, 2011 Author Share Posted November 9, 2011 no! i didn't mean that , i mean like this : and radar Blips attaching to him like this : Link to comment
12p Posted November 9, 2011 Share Posted November 9, 2011 setPlayerNametagShowing, still. The other thing is modified "playerblips", which is based on createBlipAttachedTo Link to comment
TAPL Posted November 9, 2011 Share Posted November 9, 2011 Blaawee, we are doing a magic in my server and because the magic the name and health bar hidden Link to comment
Blaawee Posted November 9, 2011 Author Share Posted November 9, 2011 Realy Nice TAPL how did you do it Link to comment
^Dev-PoinT^ Posted November 9, 2011 Share Posted November 9, 2011 its esay root = getRootElement ( ) players = getElementsByType ( "player" ) function ResourceStart ( name, root ) for k,v in ipairs ( players ) do setPlayerNametagShowing ( v, false ) end end addEventHandler ( "onResourceStart", root, ResourceStart ) function PlayerJoin () setPlayerNametagShowing ( source, false ) showPlayerHudComponent ( source, "health", false ) end addEventHandler ( "onPlayerJoin", root, PlayerJoin ) Link to comment
Blaawee Posted November 9, 2011 Author Share Posted November 9, 2011 what about to make it with command ? Link to comment
mjau Posted November 9, 2011 Share Posted November 9, 2011 Lol with 114 posts i think you should know that just change the event handler to a command handler Link to comment
Chlorek Posted November 9, 2011 Share Posted November 9, 2011 what about to make it with command ? Is it difficult to read wiki? https://wiki.multitheftauto.com/wiki/AddCommandHandler Link to comment
^Dev-PoinT^ Posted November 9, 2011 Share Posted November 9, 2011 Read The Wiki Hud function and setPlayerNameTagShowing root = getRootElement ( ) players = getElementsByType ( "player" ) function ResourceStart ( name, root ) for k,v in ipairs ( players ) do setPlayerNametagShowing ( v, false ) end end addEventHandler ( "onResourceStart", root, ResourceStart ) function PlayerJoin () setPlayerNametagShowing ( source, false ) showPlayerHudComponent ( source, "health", false ) end addCommandHandler ( "hide", PlayerJoin ) Link to comment
HoLsTeN Posted November 9, 2011 Share Posted November 9, 2011 function BlipAttachedToMyPlayer ( source ) createBlipAttachedTo ( source , 52 ) outputChatBox("Now You Have Blip Attached To Your Player",source,255,0,0) end addCommandHandler ( "blip", BlipAttachedToMyPlayer ) Link to comment
Maurize Posted November 10, 2011 Share Posted November 10, 2011 LLOLWUT :DDD Take this: addCommandHandler( "toggleHud", function( thePlayer, cmd, status ) if ( status == "off" ) then setPlayerNametagShowing ( thePlayer, false ) -- this is for hiding the name of a player showPlayerHudComponent ( thePlayer, "health", false ) -- "health" can be set to for example ammo & more... elseif ( status == "on" ) then setPlayerNametagShowing ( thePlayer, true ) -- this is for hiding the name of a player showPlayerHudComponent ( thePlayer, "health", true ) -- "health" can be set to for example ammo & more... end end ) and THIS: addCommandHandler( "getBlipMan", function( thePlayer, cmd ) createBlipAttachedTo ( thePlayer, 52 ) end ) Link to comment
Blaawee Posted November 10, 2011 Author Share Posted November 10, 2011 miss understood That's not what i meean :@ i mean is there any way to hide my name and health Bar , like glitch Link to comment
12p Posted November 10, 2011 Share Posted November 10, 2011 setPlayerNametagShowing Have you even tried it? Link to comment
^Dev-PoinT^ Posted November 10, 2011 Share Posted November 10, 2011 i give it to you ! Link to comment
Blaawee Posted November 10, 2011 Author Share Posted November 10, 2011 LOOOOOOOL :@ setPlayerNametagShowing where i have to try it tell me if i'm not admin ??? Link to comment
^Dev-PoinT^ Posted November 10, 2011 Share Posted November 10, 2011 did you see my post?? Link to comment
CapY Posted November 10, 2011 Share Posted November 10, 2011 I guess you want to be invisible ? Link to comment
Charlie_Jefferson Posted November 10, 2011 Share Posted November 10, 2011 He wants a glitch that will make him invisible, disable his nametag and all kinds of admin powers, without being admin on a server. I say that's impossible, unless you find a bug in the script. Link to comment
CapY Posted November 10, 2011 Share Posted November 10, 2011 And all kinds of admin powers, without being admin on a server. He's drunk for sure. EDIT: If you want to change your ped alpha, use this resource : https://community.multitheftauto.com/index.php?p= ... ls&id=1704 Link to comment
Castillo Posted November 10, 2011 Share Posted November 10, 2011 addCommandHandler("hide", function (thePlayer) local account = getPlayerAccount(thePlayer) if not account or isGuestAccount(account) then return end local accountName = getAccountName(account) if not isObjectInACLGroup("user."..accountName,aclGetGroup("Admin")) then return end if isPlayerNametagShowing(thePlayer) then setPlayerNametagShowing(thePlayer, false) setElementAlpha(thePlayer, 0) else setPlayerNametagShowing(thePlayer, true) setElementAlpha(thePlayer, 255) end end) Link to comment
Blaawee Posted November 11, 2011 Author Share Posted November 11, 2011 wrong wrong wrong wrong and not visible and i can be visible with command "ap " what i mean is there any way to make no one see my name and my health bar in freeroam Gamemode :@ Link to comment
Castillo Posted November 11, 2011 Share Posted November 11, 2011 That script will do that. Link to comment
Blaawee Posted November 11, 2011 Author Share Posted November 11, 2011 Solidsnake14 i'don't want a script to hide my name ,i'm just asking is there any way without scripting ??? Link to comment
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