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:
I made a config for it aswell.
Image:
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
cool, ill see if i can make a concept for you.
That's pretty cool man, I find HUDs easy myself but they take some time so good on you.
Yeah, that's true. It takes time setting the positions etc.
Good job!
Try to lerp the health of the HUD, etc..
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!
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:
(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:
Replace the : at LuaButton:DoClick with a dot instead.
Should look like this:
Code:
LuaButton.Doclick = function()
^^^^^^ Feel free to add me on steam if you need any help, we can work on projects together etc.
(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:
Replace the : at LuaButtonoClick with a dot instead.
Should look like this:
Code:
LuaButton.Doclick = function()
It's still pulling this error
After such a long time, my crappy first LUA program has been fixed. Thanks for the help guys!
(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