1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Beta L.S.T. HUD

Discussion in 'DarkRP Addon & Plugin Releases' started by LordiAnders, Jun 24, 2014.

  1. LordiAnders

    LordiAnders Active Member


    DarkRP 2.5.0+ only!

    LordiAnders's Tiny HUD

    You may ask yourself:" whys this called LordiAnders's Tiny HUD?"
    Pretty straight and forward answer, its supposed to be tiny! Ive seen so many HUDs everywhere that fills so much of the screen on lower resolutions. I thought we should have a change from that

    So what does this support and offer?
    • Hungermod bar
    • Money/job/RPName boxes
    • Simple avatar
    • HP/Armor bars (armor only appears if you have atleast 1)
    • Ammo counter (and one centered at your current weapon's muzzle attachment, due to the ammo counter being so small. Had to add something for easy ammo management. Counter changes color too based on ammo left)
    • Wanted/arrested boxes
    • On wanted msg (made to look as if a policeman was receiving it, seems neat)
    • Speed-o-meter to determine your vehicle's current speed (changes color depending on current speed. For speedlimit laws :p)
    • Few settings (not alot yet. Found in cl_lst_hud.lua, at the top of the script)

    Screenshots (some are big, some are not):

    (Click for full size)
    (Click for full size)


    Place it inside your "darkrpmodification" addon
    Dont have the addon? Get it here

    It is of importance that you report issues and bugs, so please. Have at it​

    Attached Files:

    Last edited: Feb 15, 2015
    sergun26, AutomatedGoldfish and Zignd like this.
  2. Senior Moretzsohn

    Senior Moretzsohn New Member

    Last edited: Jun 25, 2014
    konamikode likes this.
  3. Zignd

    Zignd Member

    BR detected...
  4. =DoW= Nickster

    =DoW= Nickster New Member

    Warning: Unhandled usermessage '_Notify'

    [ERROR] addons/darkrpmodification/lua/darkrp_modules/lst_hud/cl_lst_hud.lua:193: attempt to concatenate a nil value
    1. fn - addons/darkrpmodification/lua/darkrp_modules/lst_hud/cl_lst_hud.lua:193
    2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

    and it shows the default 100 from hl2, its a ulx conflict i think.
  5. LordiAnders

    LordiAnders Active Member

    Gonna investigate it as soon as possible... 11:47 pm atm. Need sleep

    EDIT: It doesnt seem to like this line...
    Code (Lua):
    DrawOutlinedTextBox("Job: "..LocalPlayer():getDarkRPVar("job") or "???",4,ScrH() - 99)
    Which is pretty strange. Ill look further

    EDIT2: "Should" be taken care of now. If you still experience issues... Let me know
    Last edited: Jun 26, 2014
  6. =DoW= Nickster

    =DoW= Nickster New Member

    no new download link?
  7. LordiAnders

    LordiAnders Active Member


    EDIT: I just noticed it didnt update.... I'll take care of it later

    EDIT2: Should be updated now. Hopefully, gosh
    Last edited: Jun 27, 2014
  8. Rarityisboss

    Rarityisboss New Member

    Uhh im getting that same thing with tha default hud, but i found a way for it to go away by typing cl_drawhud in console, only problem sv_cheats had to be on.
    Any workaround?

    EDIT: This is what i mean...
    ^ Also what that percentage? My armor?
    Last edited: Jul 10, 2014
  9. Rarityisboss

    Rarityisboss New Member

    I tried ["hud"] = false,
    this is what I got... Sorry got lazy on crop >.<

    Also i saw some errors in my SCRDS console, i couldnt copy so I did this, I haven't a clue if its useful or not.

    Here is another error,

    [ERROR] lua/includes/modules/draw.lua:198: bad argument #3 to 'SetDrawColor' (number expected, got nil)
    1. SetDrawColor - [C]:-1
    2. RoundedBox - lua/includes/modules/draw.lua:198
    3. v - gamemodes/darkrp/gamemode/modules/hungermod/cl_init.lua:74
    4. Run - lua/includes/modules/hook.lua:84
    5. HUDPaint - gamemodes/base/gamemode/cl_init.lua:74
    6. HUDPaint - gamemodes/sandbox/gamemode/cl_init.lua:75
    7. unknown - gamemodes/darkrp/gamemode/modules/hud/cl_hud.lua:401
  10. LordiAnders

    LordiAnders Active Member

    Are you remembering to put the module in the designated location as said in the post?

    This has never happend to atleast 3 people i know
  11. Rarityisboss

    Rarityisboss New Member

    Look, [​IMG]

    that seem right?
  12. LordiAnders

    LordiAnders Active Member

    Are you running on a clean DarkRP aswell?
    And if you are, what modifications did you do to the HUD?
  13. Rarityisboss

    Rarityisboss New Member

  14. LordiAnders

    LordiAnders Active Member

    I dont think any of those addons would cause conflict... Have you atleast tried to run this on a clean DarkRP install first?
  15. Rarityisboss

    Rarityisboss New Member

    Yeah worked fine. Infact if i remove the HUD you made its perfect... only thing is I want your hud. :/
  16. Rarityisboss

    Rarityisboss New Member

    Fixed it and it was a user error :p
  17. =DoW= Nickster

    =DoW= Nickster New Member

    HAVING the exact same problems the hl2 hud is showing adgenda is missing even on a fresh install!
  18. Race Pro Kid

    Race Pro Kid New Member

    If you're having an issue with default HUD showing, try adding this code to the HUD script you're using:

    Code (Text):
    --Hides the default HUD
    function hidehud(name)
        for k, v in pairs({"CHudHealth", "CHudBattery"})do
            if name == v then return false end
    hook.Add("DefHUDShouldDraw", "HideDefHud", hidehud)
  19. LordiAnders

    LordiAnders Active Member

    Oops... I think I know what's causing it... Gonna see if I can fix it, aswell as changing/adding some stuff
  20. =DoW= Nickster

    =DoW= Nickster New Member

    Okay thanks...

Share This Page