Login
Sign Up


You are using the mobile version of the forum, some features have been disabled to have it responsive.
Limelight CityRP - v4b1Limelight CityRP - EU Build
Ares Defence Services DiscordAres Defence Services
Limelight Discord
Limelight CityRP - v4b1Limelight CityRP - EU BuildAres Defence Services DiscordAres Defence ServicesLimelight Discord

receiptDevelopment Blog:

Development Contributor Workflow

receiptHR Blog:

What *are* they doing over there?

receiptTeacher Blog:

Insight into the Teacher Team

receiptDevelopment Blog:

Infrastructure Upgrade 11/2019

receiptDevelopment Blog:

how suggestions???

receiptDevelopment Blog:

Planning for the future.


This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Coding HUDs.
Ilias S. radio_button_checked
Limelight Community Donator
Membership
Posts: 444
Threads: 35
Likes Given: 110
Likes Recieved: 242 in 213 posts
Joined: Apr 2016
Reputation: 5
#1
May 13, 2017, 02:53 PM
Hello there!

So, for the past 3weeks i have been working on a HUD. I really enjoy it since i am working on it 24/7. The feeling of coding is just A-M-A-Z-I-N-G.

What do you think?

Image:
[Image: 3FsvnOO.jpg]

I made a config for it aswell.

Image:



[Image: TG9nG0P.png?1]

Well, if you know how to use photoshop feel free to create a HUD in there and send it to me. I am willing to make it since i want to learn more and more everyday but i am kinda out of ideas. Thanks Big Grin
Kind Regards,
GreekAssassin
LimeLight Community Member
Cooli radio_button_checked
Member
Membership
Posts: 2,002
Threads: 88
Likes Given: 457
Likes Recieved: 827 in 619 posts
Joined: Oct 2015
Reputation: 24
#2
May 13, 2017, 10:35 PM
cool, ill see if i can make a concept for you.
The following 1 user Likes Cooli's post:
  • Ilias S.
Ilias S. radio_button_checked
Limelight Community Donator
Membership
Posts: 444
Threads: 35
Likes Given: 110
Likes Recieved: 242 in 213 posts
Joined: Apr 2016
Reputation: 5
#3
May 13, 2017, 11:16 PM
(May 13, 2017, 10:35 PM)Cooli Wrote: cool, ill see if i can make a concept for you.

That's amazing, thanks!
Kind Regards,
GreekAssassin
LimeLight Community Member
Broccoli radio_button_checked
User
Registered User
Posts: 5
Threads: 0
Likes Given: 4
Likes Recieved: 4 in 4 posts
Joined: Dec 2016
Reputation: 3
#4
May 14, 2017, 03:46 AM
That's pretty cool man, I find HUDs easy myself but they take some time so good on you.
The following 1 user Likes Broccoli's post:
  • Ilias S.
Ilias S. radio_button_checked
Limelight Community Donator
Membership
Posts: 444
Threads: 35
Likes Given: 110
Likes Recieved: 242 in 213 posts
Joined: Apr 2016
Reputation: 5
#5
May 14, 2017, 12:59 PM
Yeah, that's true. It takes time setting the positions etc.
Kind Regards,
GreekAssassin
LimeLight Community Member
Jompe radio_button_checked
Contributor
Contributor
Posts: 403
Threads: 33
Likes Given: 793
Likes Recieved: 254 in 151 posts
Joined: Aug 2015
Reputation: 7
#6
May 23, 2017, 03:28 PM
Good job!

Try to lerp the health of the HUD, etc.. Smile
https://wiki.garrysmod.com/page/Global/Lerp


EDIT: 
Also, something that's good to know! You should probably save your variables/tables inside a "workspace table" as I like to call it. Right now you save everything inside a table called Config which could collide with other addons if someone else does the same thing. Try to come up with a unique name of your table like GreeksHUD or something like that. Then you could create another table in the GreeksHUD table called Config, etc.. So the path to the config variable would for example be GreeksHUD.Config.CommunityWebsite.

Anyhow, good job! Smile
[Image: Vmkhnx5.png]
(This post was last modified: May 23, 2017, 03:41 PM by Jompe.)
The following 1 user Likes Jompe's post:
  • zona
Ilias S. radio_button_checked
Limelight Community Donator
Membership
Posts: 444
Threads: 35
Likes Given: 110
Likes Recieved: 242 in 213 posts
Joined: Apr 2016
Reputation: 5
#7
May 23, 2017, 11:01 PM
Great ideas!

Thanks!
Kind Regards,
GreekAssassin
LimeLight Community Member
Quest radio_button_checked
Member
Membership
Posts: 1,608
Threads: 80
Likes Given: 2352
Likes Recieved: 729 in 478 posts
Joined: Mar 2016
Reputation: 9
#8
May 24, 2017, 07:08 PM
Hey I've recently been trying to learn LUA, I tried to start off by doing a simple Derma window. I see no errors when re-reading my program yet I still get this error: 

[ERROR] lua/autorun/client/testprogram.lua:20: function arguments expected near '='

  1. unknown - lua/autorun/client/testprogram.lua:0

This is my program:
[Image: AhFDxjY.png]
[Image: ObFHLGq.png]
Jompe radio_button_checked
Contributor
Contributor
Posts: 403
Threads: 33
Likes Given: 793
Likes Recieved: 254 in 151 posts
Joined: Aug 2015
Reputation: 7
#9
May 25, 2017, 04:06 AM
(May 24, 2017, 07:08 PM)Quest Wrote: Hey I've recently been trying to learn LUA, I tried to start off by doing a simple Derma window. I see no errors when re-reading my program yet I still get this error: 

[ERROR] lua/autorun/client/testprogram.lua:20: function arguments expected near '='

  1. unknown - lua/autorun/client/testprogram.lua:0

This is my program:
[Image: AhFDxjY.png]

Replace the : at LuaButton:DoClick with a dot instead.

Should look like this:
Code:
LuaButton.Doclick = function()
[Image: Vmkhnx5.png]
Spai radio_button_checked
Veteran
Veteran Member
Posts: 75
Threads: 6
Likes Given: 2
Likes Recieved: 44 in 26 posts
Joined: Aug 2015
Reputation: 9
#10
May 25, 2017, 01:53 PM
You've almost misspelt
Code:
Label = vgui.create("DLable", LuaTest)

should be 
Code:
Label = vgui.create("DLabel", LuaTest)
The following 1 user Likes Spai's post:
  • Jompe
Ilias S. radio_button_checked
Limelight Community Donator
Membership
Posts: 444
Threads: 35
Likes Given: 110
Likes Recieved: 242 in 213 posts
Joined: Apr 2016
Reputation: 5
#11
May 25, 2017, 03:15 PM
^^^^^^ Feel free to add me on steam if you need any help, we can work on projects together etc. Big Grin
Kind Regards,
GreekAssassin
LimeLight Community Member
Quest radio_button_checked
Member
Membership
Posts: 1,608
Threads: 80
Likes Given: 2352
Likes Recieved: 729 in 478 posts
Joined: Mar 2016
Reputation: 9
#12
May 25, 2017, 05:25 PM
(May 25, 2017, 04:06 AM)Jompe Wrote:
(May 24, 2017, 07:08 PM)Quest Wrote: Hey I've recently been trying to learn LUA, I tried to start off by doing a simple Derma window. I see no errors when re-reading my program yet I still get this error: 

[ERROR] lua/autorun/client/testprogram.lua:20: function arguments expected near '='

  1. unknown - lua/autorun/client/testprogram.lua:0

This is my program:
[Image: AhFDxjY.png]

Replace the : at LuaButtonBig GrinoClick with a dot instead.

Should look like this:
Code:
LuaButton.Doclick = function()
[Image: UiO64IB.png]
It's still pulling this error
[Image: ObFHLGq.png]
Quest radio_button_checked
Member
Membership
Posts: 1,608
Threads: 80
Likes Given: 2352
Likes Recieved: 729 in 478 posts
Joined: Mar 2016
Reputation: 9
#13
May 25, 2017, 06:00 PM
[Image: KLpbWcE.png]  After such a long time, my crappy first LUA program has been fixed. Thanks for the help guys!
[Image: ObFHLGq.png]
The following 3 users Like Quest's post:
  • Ilias S., Jompe, zona
Ilias S. radio_button_checked
Limelight Community Donator
Membership
Posts: 444
Threads: 35
Likes Given: 110
Likes Recieved: 242 in 213 posts
Joined: Apr 2016
Reputation: 5
#14
May 25, 2017, 11:27 PM
Great!
Kind Regards,
GreekAssassin
LimeLight Community Member
Broccoli radio_button_checked
User
Registered User
Posts: 5
Threads: 0
Likes Given: 4
Likes Recieved: 4 in 4 posts
Joined: Dec 2016
Reputation: 3
#15
Jun 4, 2017, 05:35 AM
(May 25, 2017, 06:00 PM)Quest Wrote: -snip-

After such a long time, my crappy first LUA program has been fixed. Thanks for the help guys
Well done ::D if you ever need help contact me




Users browsing this thread: