Results 1 to 2 of 2

Thread: Hud and Hotkeys

  1. #1
    Normal User
    Join Date
    Aug 2014
    Posts
    21
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    10
    Rep Power
    3

    Hud and Hotkeys

    So i want to enable only some parts of hud, and to always show hud with a hotkey.
    I've tried creating a hotkey with 'variable = true', and add that variable to hud instead of 'true' or false', but that doesn't work.
    Only works if i put it in a new Hud>List>script and enable it.

    Can i create a hotkey inside a script?
    How do i type "variable = !variable" in lua?
    And can i name a variable like 'bool variable' without giving it a true or false so i can enable/disable it with hothey 'variable = !variable'

    Might be a bit confusing, hard to explain.
    Thanks

    Edit:
    I think i figured it out at least for now..

    In hotkey
    PHP Code:
    if getsettings("Settings\\Hud\\List\\HudON\\Enabled") == "no" then
        setsettings
    ("Settings\\Hud\\List\\HudON\\Enabled""yes")
        
    setsettings("Settings\\Hud\\List\\HudOFF\\Enabled""no")
        
    setsettings("Settings\\Hud\\List\\iBotLootCounter\\Enabled""yes")
        
    setsettings("Settings\\Hud\\Show""If Focused")
    else
        
    setsettings("Settings\\Hud\\List\\HudOFF\\Enabled""yes")
        
    setsettings("Settings\\Hud\\List\\HudON\\Enabled""no")
        
    setsettings("Settings\\Hud\\List\\iBotLootCounter\\Enabled""no")
        
    setsettings("Settings\\Hud\\Show""Always")
    end 
    in HudON - variable = true
    in HudOFF - variable = false
    Last edited by lamafao; 08-30-2014 at 02:23 PM.

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    I don't really know what you're trying to do but as long as it works for ya!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •