Garry's Mod

Garry's Mod

Health & Armor Commands
107 Comments
♡𝒦𝒶𝓌𝒶𝒾-おに~ 3 Nov, 2024 @ 6:13am 
i love this
m4v 24 Nov, 2023 @ 11:52am 
rlly good, big +REP
RConQ 18 Aug, 2023 @ 7:57am 
i know there is a command called ent_fire !player addoutput "health <100>"
Is there one that gives you armor and not health?
テクノモンキーDJ  [author] 4 May, 2023 @ 11:05pm 
This is the version with the functioning armor. https://1drv.ms/u/s!ArWfCbH-fFBdub4iFNGYCaWX5EWZzw?e=ZeE4WA
4 May, 2023 @ 9:54pm 
Good work. If you can, send a link over and I'll take a look at what you're doing and what is going wrong. I'm still in love with this addon btw
テクノモンキーDJ  [author] 1 May, 2023 @ 9:59am 
@Færün figured out how to separate Armor consumable vs spawn so now you can have the spawn set to 0, but set the edibles to 1,000,000. Tried to do it with the health as well but I'm too tired. It's 3 in the morning. 😢
1 May, 2023 @ 8:47am 
What a beautiful thing from a beautiful team. I found a lifesaver addon and ended up making a lifesaver. All in the scale of 3 hours. Thanks man. Have a good day, homie <3
テクノモンキーDJ  [author] 1 May, 2023 @ 8:42am 
@Færün The best thing, it doesn't have any script errors. Your credits are in the description.
1 May, 2023 @ 8:24am 
Thats what I'm talking about baby. Glad to be of service. I had a SHIT ton of fun messing with your code and im deadass considering picking up LUA now like ive wanted to. I can actually Understand your code and thats not something i can normally do with mods. Thank you for the good time.
テクノモンキーDJ  [author] 1 May, 2023 @ 8:16am 
@Færün I took one line of yours and glued it in and it's now working. 😁 Thanks for the help. You will get credits in the description.
テクノモンキーDJ  [author] 1 May, 2023 @ 8:13am 
@Færün I got it to work with no armour limit on consumables.
1 May, 2023 @ 8:13am 
I got no errors but if i had to guess its probably cuz i dropped GetFullArmor in one of the first functions of the code. But I guess its time to make a shitpost version with errors. for those who want an actual max armor mod. Here's it working: https://streamable .com/hm59np
テクノモンキーDJ  [author] 1 May, 2023 @ 8:04am 
@Færün I might have fixed it by modifying my one.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:56am 
@Færün Just gives me script errors.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:45am 
@Færün Your version of the armour doesn't seem to work. I going to test it on a different computer. Just in case it still sees the old files for some reason.
1 May, 2023 @ 7:43am 
And if someone wants to cheat they're not going to use a max health command that works for everyone (or all admins) they're going to use a HP command or more likely god mode. or the console. Again I mean no harm my man. But there are improvements we can make
1 May, 2023 @ 7:32am 
No sir that hard limit does not exist in Gmod. There was a 255 limit in HLDM servers but thats not a thing in Gmod. Use my linked mod and you will see you can. The reason their health never goes above 100 with consumables/not-scripts is because you're not actually Changing the Max armor value. You're running GetFullArmor (which is 100 by default) + sv_player_max_armor, at spawn, to give the player armor. You're not setting SetMaxArmor to sv_player_max_armor.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:20am 
@Færün Unlike health.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:16am 
@Færün And armor has a hard limit of 100 It has a soft limit of whatever you want. Meaning you can set the armor to high as you want but no consumable will restore it over then 100.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:12am 
@Færün Simply use the kill command to respawn.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:10am 
@Færün Hence it set to after respawn.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:10am 
@Færün imagine you are fighting someone then all of a suddenly their health and armor skyrockets...
No fun.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:07am 
@Færün The dude wanted it to be able to be changed on the fly.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:05am 
@Færün And verify afterwards.
1 May, 2023 @ 7:05am 
Health commands worked from the door but the armor command is false advertising at best. Reading the comments, all I can say i dont see why you'd do calcs for GetFullArmor, preventing you from changing the Actual max armor value; When in theory you should be able to call back to ur max armor Cvar and use That as a pointer for the armor to give on spawn. How does it make sense that i can set my spawn armor to 100000000 but cant change my Max armor to 65 because "that's too cheaty". I mean no disrespect I just dont think you're thinking that through.
テクノモンキーDJ  [author] 1 May, 2023 @ 7:04am 
@Færün You might have to clear the Garry's Mod Workshop folder. Example location. C:\Program Files (x86)\Steam\steamapps\workshop\content\4000 or Example 2 location. D:\SteamLibrary\steamapps\workshop\content\4000
テクノモンキーDJ  [author] 1 May, 2023 @ 7:00am 
@Færün Just tested on another computer with a clean copy of Garry's Mod with no mods other than this one. And it's working perfectly fine, so I'm extra confused.🤔
テクノモンキーDJ  [author] 1 May, 2023 @ 6:42am 
@Færün Just removed it from my workshop folder and verified it so it would force re-download it and tested it. It is running just fine. So I have no clue why it's not working for you.
テクノモンキーDJ  [author] 1 May, 2023 @ 6:29am 
@Færün the mod commands don't take effect until you respawn your player.
But if none of my commands work then that's weird it could be trying to download the older version for some reason what was completely broken.
1 May, 2023 @ 6:05am 
Also I am madly in love with you for uploading or reuploading this addon. I'd been using WeaponSets + ULX at spawn to set my max health; for like 3 years. I dont have to do any of that anymore thanks to you.
1 May, 2023 @ 5:47am 
Im no coder at All but im one hell of a googler and the armor command was not working, set to 65, even with all addons disabled and reinstalling. I had a few ideas, copied the health line and replaced GetFullArmor with GetMaxArmor. it prolly breaks the give cmds but i literally see zero reason to use those if the point of this addon is to change the Limits. posted the edit here: https://www.mediafire .com/file/2d9om7x6q49pn9v/health_armor_commands.rar/file
VLASS 21 Nov, 2022 @ 9:06am 
nice command
Imrgrim 22 Oct, 2022 @ 11:36pm 
OMG I LOVE YOOU THANK YOU SO MUUUUUCH THIS IS SO USEFUL
An AMX-40 Duck 7 Jan, 2022 @ 9:42pm 
well, I disabled all my mods and slowly re-subbed them. And the mod I linked caused the health and armor commands to malfunction. I unsub from it, this mod works again, repeat the process. so yeah. But otherwise we cool
テクノモンキーDJ  [author] 7 Jan, 2022 @ 7:36pm 
@Broccoli, nyu. are you running a branch version of Garry's Mod under the beta section because i stopped repairing mods for that because it was too unstable if not ignore this message and continue with the message before this one.
テクノモンキーDJ  [author] 7 Jan, 2022 @ 7:23pm 
@Broccoli, nyu. I've have no idea what's causing it and can't reproduce it. The only thing I can think of is disable all your mods except for this one and slowly re-add them until the problem shows up, Because the mod you link had no conflicts with this mod.
An AMX-40 Duck 7 Jan, 2022 @ 5:32pm 
Update: So I think I found the culprit. Apparently it doesn't like this parachute https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=105699464 at least given this past Gmod update.

Strange thing is there were no errors indicating this in the console. Sorry about the spam.
An AMX-40 Duck 7 Jan, 2022 @ 3:47pm 
I hate to keep bothering you, but I've noticed patterns. It would seem that, at least for me, the addon has grown so unstable that I can't so much as download a new addon without it malfunctioning and getting this error and nothing, literally NOTHING short of a full reinstall fixes the issue.

[Health & Armor Commands] lua/autorun/give_me_sum_shit.lua:69: bad argument #1 to 'SetArmor' (number expected, got nil)
1. SetArmor - [C]:-1
2. unknown - lua/autorun/give_me_sum_shit.lua:69

Im not saying this is on you, and tbf another addon I have malfunctions in a similar manner. But I just figured I'd let you know. So you definitely think it's something I have that conflicts?
テクノモンキーDJ  [author] 1 Jan, 2022 @ 6:34pm 
@Broccoli, nyu. E.G. is abbreviation for "for example" I'm sorry I should have used the full word instead of the abbreviation.
An AMX-40 Duck 1 Jan, 2022 @ 9:01am 
I'm not sure what an EG admin mod is. But I'll see what I can do. It's frustrating but Im kind glad it's just me cause I love this mod. And I've seen gmod updates completely f*ck mods up.
テクノモンキーDJ  [author] 1 Jan, 2022 @ 2:53am 
@Broccoli, nyu. I just tested it in multiplayer and single-player it is running just fine either you got to delete the mod and reinstall it or you got a mod conflict E.G admin mods don't like this mod, You can always disable all your mods and re-enable them, 10 mods at a time, until you find the issue, Sorry if this is an inconvenience.
An AMX-40 Duck 31 Dec, 2021 @ 11:18pm 
[Health & Armor Commands] lua/autorun/give_me_sum_shit.lua:69: bad argument #1 to 'SetArmor' (number expected, got nil)
1. SetArmor - [C]:-1
2. unknown - lua/autorun/give_me_sum_shit.lua:69

Timer Failed! [Simple][@lua/autorun/give_me_sum_shit.lua (line 66)]

IDK if this is just me, but I got this error trying to use these commands, my health has continuously started at a measly 100 and I'd hate to re-install gmod again, but I got this error when I tried to use "sv_give_armor_on_spawn"
An AMX-40 Duck 16 Dec, 2021 @ 11:26pm 
Yeah, luckily it was just me. I had to reinstall my gmod entirely ;-; but its better than this awesome addon getting f**ked up by an update
テクノモンキーDJ  [author] 16 Dec, 2021 @ 11:18pm 
@Broccoli, nyu. It's working just fine, just tested it.
An AMX-40 Duck 16 Dec, 2021 @ 8:43pm 
Is it me or do these commands not seem to be working anymore?
テクノモンキーDJ  [author] 19 Sep, 2021 @ 7:13pm 
johannbigbones^ 19 Sep, 2021 @ 3:41pm 
what map is used in the video?
テクノモンキーDJ  [author] 29 Jul, 2021 @ 9:08am 
@Hail To The Sid, You can force it on just fine with both mods together if you want to set your health to 1000 using "sv_player_max_health 1000" then force it to 1000 using Custom HP v2 you can ...instead of killing your character, enjoy
テクノモンキーDJ  [author] 29 Jul, 2021 @ 8:49am 
@Hail To The Sid, if you want a cheating mod here's a cheating mod it Custom HP v2 enjoy https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=975378872
テクノモンキーDJ  [author] 29 Jul, 2021 @ 8:40am 
@Hail To The Sid, Read description it's the last line.... Just make your own mod or be lazy and use cheat engine or something I really don't care, Stop being a choosing beggar, I'm not changing how the mod is because you Want It That Way