alcholistu Posted June 16, 2013 Share Posted June 16, 2013 I have only an answear . How to remove the crosshair at a weapon or at all ? Link to comment
Castillo Posted June 16, 2013 Share Posted June 16, 2013 SImply, hide the crosshair HUD part: addEventHandler ( "onPlayerJoin", root, function ( ) showPlayerHudComponent ( source, "crosshair", false ) end ) Link to comment
iPrestege Posted June 16, 2013 Share Posted June 16, 2013 debugscript 3 ? It's server side right? Link to comment
alcholistu Posted June 16, 2013 Author Share Posted June 16, 2013 Yeah , it's server side. The resourse works , but don't hide de HUD. Link to comment
Castillo Posted June 16, 2013 Share Posted June 16, 2013 Try hiding it on spawn: addEventHandler ( "onPlayerSpawn", root, function ( ) showPlayerHudComponent ( source, "crosshair", false ) end ) Link to comment
alcholistu Posted June 16, 2013 Author Share Posted June 16, 2013 Srry snake , my bad , i forgot to reconnect . Link to comment
Castillo Posted June 16, 2013 Share 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 ) Link to comment
Kenix Posted June 17, 2013 Share Posted June 17, 2013 In client side showPlayerHudComponent ( 'crosshair', false ) Link to comment
JasperNL=D Posted June 17, 2013 Share 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 Link to comment
iPrestege Posted June 17, 2013 Share Posted June 17, 2013 Client side will not work before the download finish . Link to comment
Castillo Posted June 17, 2013 Share 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. Link to comment
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