• Making a player invisible
    5 replies, posted
How do you make a player invisible?
Define "invisible." There are player models that are transperent, sweps that make you invisible, and console codes (I think)
The simplest way is to just give them a color with an alpha value of 0.
player:SetColor(255,255,255,0)
[lua] local meta = FindMetaTable( "Player" ) function meta:MakeInvisible( bool ) if( bool == nil ) then bool = true end self:SetNotSolid( bool ) self:SetNoDraw( bool ) self:DrawViewModel( not bool ) if( self:GetActiveWeapon():IsValid() ) then self:GetActiveWeapon():SetNoDraw( bool ) end end[/lua] That should make the player fully invisible. Not my code though.
-snip-
Sorry, you need to Log In to post a reply to this thread.