Hello,
There seems to be an issue with my cloak. Whenever you cloak, your name above your head is still showing, whenever you have a physic gun out it reveals the brightness of it, and when you begin to type something it shows the message icon above your head.
How are you able to make it completely cloak so none of this happens?
The codes below.
function ulx.cloak( calling_ply, target_plys, amount, should_uncloak )
if not target_plys[ 1 ]:IsValid() then
Msg( "You are always invisible.\n" )
return
end
amount = 255 - amount
for i=1, #target_plys do
ULib.invisible( target_plys[ i ], not should_uncloak, amount )
end
if not should_uncloak then
ulx.fancyLogAdmin( calling_ply, "#A cloaked #T by amount #i", target_plys, amount )
else
ulx.fancyLogAdmin( calling_ply, "#A uncloaked #T", target_plys )
end
end
local cloak = ulx.command( CATEGORY_NAME, "ulx cloak", ulx.cloak, "!cloak" )
cloak:addParam{ type=ULib.cmds.PlayersArg, ULib.cmds.optional }
cloak:addParam{ type=ULib.cmds.NumArg, min=0, max=255, default=255, hint="amount", ULib.cmds.round, ULib.cmds.optional }
cloak:addParam{ type=ULib.cmds.BoolArg, invisible=true }
cloak:defaultAccess( ULib.ACCESS_ADMIN )
cloak:help( "Cloaks target(s)." )
cloak:setOpposite( "ulx uncloak", {_, _, _, true}, "!uncloak" )