General > Off-Topic
How to remove crosshair
genkaix1000:
Hi everyone!
Anyone know how to remove the crosshair on all weapons?
(For all users of the server)
BlueNova:
--- Code: ---crosshair 1
--- End code ---
is for the crosshair on
--- Code: ---crosshair 0
--- End code ---
is for the crosshair off
Just put those in console.
MrPresident:
That's clientside, he might want to disable it for all players.
Also, this is off-topic. Moving.
genkaix1000:
Sorry, I was wrong about the section.
I need to remove the crosshair from all players and can not activate it
MrPresident:
Throw this in a lua file and save it to garrysmod/lua/autorun
--- Code: ---AddCSLuaFile()
if SERVER then return end
function HideHUD(name)
for k, v in pairs( { "CHudCrosshair" } ) do
if name == v then return false end
end
end
hook.Add( "HUDShouldDraw", "HideHUD", HideHUD)
--- End code ---
or alternatively, you could explore the use of:
http://wiki.garrysmod.com/page/Player/CrosshairDisable
Navigation
[0] Message Index
[#] Next page
Go to full version