abu5lf Posted April 16, 2012 Share Posted April 16, 2012 (edited) local ishudVisible = true bindKey (source,"i","down", function (key,state) if ishudVisible then showPlayerHudComponent ( source, "all", false ) ishudVisible = false else showPlayerHudComponent ( source, "all", true ) ishudVisible = true end end ) Edited December 25, 2012 by Guest Link to comment
Castillo Posted April 16, 2012 Share Posted April 16, 2012 I'm guessing this is a client-side script. local isHudVisible = true bindKey ( "i", "down", function ( ) isHudVisible = ( not isHudVisible ) showPlayerHudComponent ( "all", isHudVisible ) end ) 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