Ulysses
General => Off-Topic => Topic started by: genkaix1000 on January 22, 2017, 07:05:31 PM
-
Hi everyone!
Anyone know how to remove the crosshair on all weapons?
(For all users of the server)
-
crosshair 1
is for the crosshair on
crosshair 0
is for the crosshair off
Just put those in console.
-
That's clientside, he might want to disable it for all players.
Also, this is off-topic. Moving.
-
Sorry, I was wrong about the section.
I need to remove the crosshair from all players and can not activate it
-
Throw this in a lua file and save it to garrysmod/lua/autorun
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)
or alternatively, you could explore the use of:
http://wiki.garrysmod.com/page/Player/CrosshairDisable
-
Thanks! Works fine!