alcholistu Posted June 16, 2013 Posted June 16, 2013 I have only an answear . How to remove the crosshair at a weapon or at all ?
Castillo Posted June 16, 2013 Posted June 16, 2013 SImply, hide the crosshair HUD part: addEventHandler ( "onPlayerJoin", root, function ( ) showPlayerHudComponent ( source, "crosshair", false ) end )
alcholistu Posted June 16, 2013 Author Posted June 16, 2013 Yeah , it's server side. The resourse works , but don't hide de HUD.
Castillo Posted June 16, 2013 Posted June 16, 2013 Try hiding it on spawn: addEventHandler ( "onPlayerSpawn", root, function ( ) showPlayerHudComponent ( source, "crosshair", false ) end )
alcholistu Posted June 16, 2013 Author Posted June 16, 2013 Srry snake , my bad , i forgot to reconnect .
Castillo Posted June 16, 2013 Posted June 16, 2013 Well, you can use both. And add this to hide it when resource starts: addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do showPlayerHudComponent ( player, "crosshair", false ) end end )
Kenix Posted June 17, 2013 Posted June 17, 2013 In client side showPlayerHudComponent ( 'crosshair', false )
JasperNL=D Posted June 17, 2013 Posted June 17, 2013 Well, you can use both.And add this to hide it when resource starts: addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do showPlayerHudComponent ( player, "crosshair", false ) end end ) Instead of a bunch of functions and events it may be more useful and practical to use it client-sided and onClientResourceStart
iPrestege Posted June 17, 2013 Posted June 17, 2013 Client side will not work before the download finish .
Castillo Posted June 17, 2013 Posted June 17, 2013 Well, you can use both.And add this to hide it when resource starts: addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do showPlayerHudComponent ( player, "crosshair", false ) end end ) Instead of a bunch of functions and events it may be more useful and practical to use it client-sided and onClientResourceStart Can be done both ways, is up to him.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now