Garry's Mod

Garry's Mod

HL2 Quick Info
lol 10 Jun, 2019 @ 3:33pm
Colorable Suggestion
Are you able to add a color menu to this, if you have the time to of course.
Last edited by lol; 26 Jun, 2019 @ 6:23pm
< >
Showing 1-7 of 7 comments
why not
NewAgeDerpDerp 29 Jun, 2019 @ 3:40pm 
You can change the colors in the lua script file
lol 1 Jul, 2019 @ 9:51am 
Originally posted by eellsworth24:
You can change the colors in the lua script file
Mind giving a quick tutorial on how to access it?
yoknowhat 19 Jul, 2019 @ 2:46pm 
Originally posted by lol.™:
Originally posted by eellsworth24:
You can change the colors in the lua script file
Mind giving a quick tutorial on how to access it?

Color changing suggestion

Go steam/steamapps/common/garrysmod/garrysmod/addons/
find addon as a .gma file, as for me it is /hl2_quick_info_1138414631.gma

Extract your addon with GMAD and then seek for .lua file in created folder
Now open this file with a Wordpad and seek for:

local clrNormal = Color(R, G, B, A) - that is the color model used by source engine
RGBA is the the same color state as usual RGB but with Alpha (transparent) channel

^ so for setting the color you want - just seek for it in RGB and put it in ^

FOR EXAMPLE
i like white so i wanna have white hud
white in RGB looks like 255 255 255
so i set local clrNormal = Color(255, 255, 255, 255)

Basically you dont have to change Alpha (4th channel), so leave it as is, 255 (non-transparent)

Also, you can change next line ( local clrCaution ) the same way

It is already set to local clrCaution = Color(255, 48, 0, 255) , which means it to be ~red~

This way clrCaution ~red~ means hp/ammo indicator will turn red when player reaches cautious level of hp/ammo

WARNING! DELETE ORIGINAL .GMA FILE BEFORE STARTING THE GAME

Last edited by yoknowhat; 20 Jul, 2019 @ 7:35am
lol 20 Jul, 2019 @ 12:18pm 
Originally posted by дед:
Originally posted by lol.™:
Mind giving a quick tutorial on how to access it?

Color changing suggestion

Go steam/steamapps/common/garrysmod/garrysmod/addons/
find addon as a .gma file, as for me it is /hl2_quick_info_1138414631.gma

Extract your addon with GMAD and then seek for .lua file in created folder
Now open this file with a Wordpad and seek for:

local clrNormal = Color(R, G, B, A) - that is the color model used by source engine
RGBA is the the same color state as usual RGB but with Alpha (transparent) channel

^ so for setting the color you want - just seek for it in RGB and put it in ^

FOR EXAMPLE
i like white so i wanna have white hud
white in RGB looks like 255 255 255
so i set local clrNormal = Color(255, 255, 255, 255)

Basically you dont have to change Alpha (4th channel), so leave it as is, 255 (non-transparent)

Also, you can change next line ( local clrCaution ) the same way

It is already set to local clrCaution = Color(255, 48, 0, 255) , which means it to be ~red~

This way clrCaution ~red~ means hp/ammo indicator will turn red when player reaches cautious level of hp/ammo

WARNING! DELETE ORIGINAL .GMA FILE BEFORE STARTING THE GAME
Your assistance will not be forgotton.
yoknowhat 25 Jul, 2019 @ 4:08am 
lmao you have 7 times more hrs played at gmod and yet asking community for help at simpliest lua stuff



Last edited by yoknowhat; 25 Jul, 2019 @ 4:09am
lol 25 Jul, 2019 @ 7:33am 
Originally posted by дед:
lmao you have 7 times more hrs played at gmod and yet asking community for help at simpliest lua stuff
I mean it's not like having a lot of hours in a game automatically mean you know lua.
< >
Showing 1-7 of 7 comments
Per page: 1530 50