Hi
I know this maybe is stupid question but i am new in gmod lua and i was trying to make entity (exactly player) i used this code
function ENT:Use(a , ply)
ply:SetRenderMode(RENDERMODE_TRANSALPHA)
ply:SetColor(Color(0,0,0,150))
timer.Simple( 40, function()
end )
end
After 10 seconds i want to un-transparent player
You need to change timer form 40 to 10.
It's better to use timer.Create here with unique name for each player or Think hook, because player can press E more than once
In original code i have after pressing e self:remove but i cant still figure out how to un-transparent player
Just delete system32 via the command console brah trust me
Sorry, you need to Log In to post a reply to this thread.