Garry's Mod

Garry's Mod

45 ratings
Suit Up! [Armor System]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
4.779 KB
1 Jul, 2019 @ 3:20am
1 Change Note ( view )

Subscribe to download
Suit Up! [Armor System]

Description
What is Suit Up?

Suit Up is an addon designed to work for DarkRP (it will work with other gamemodes but not as well). It is easy to make new armors with a simple function. Everything inside the config is commented to help with creation and editing the addon.



Features:
Dropping armor
Npc to replace the F4 menu for buying armor (optional)
Easy to setup
Super customization
Comes with 6 armors that can be used as reference for making your own
Armor is automatically added to the F4 menu on start!

Installation:
Extract the zip file into your addons folder
Open suit_up/lua/jarmor/suitup_config.lua
Customize it to your liking

Making your own armor:

I have added a function called 'addArmor', you will put this in your config file like this:

addArmor({

-- Entity things

ent = {

PrintName = "Scary Armor", -- What should the human readable name be?

Author = "Johnny Johnny", -- Doesn't matter

Spawnable = true -- Should you be able to spawn the armor through the spawnmenu?

},



-- Custom setup, change everything in here to whatever you like

entityname = "jarmor_scary", -- Should be unique for every armor

newPlayermodel = "models/player/corpse1.mdl", -- What should the players model be changed to

description = "+2 HP", -- What should appear in chat when you put on the armor

textColor = Color(255, 0, 0), -- The color of the text above the box

price = 250000,



pickedUp = function(ply) -- When the armor is picked up (Not needed)

ply:SetHealth(102)

end,



dropped = function(ply) -- When the armor is dropped (Not needed)

if(ply:Health() > 100) then ply:SetHealth(100) end

end

})

Config Snippet:

https://gyazo.com/a997c68524fb71b8e5b6aa5f95a131a5
17 Comments
Trippylife 5 Nov, 2022 @ 3:00pm 
I keep getting this error when spawning an armor box.

Warning! Calling cam.End3D2D because someone forgot to!

[suit_up__[armor_system]_1787742349] lua/includes/modules/draw.lua:65: 'boxFontSuitUp' isn't a valid font

1. SetFont - [C]:-1
2. SimpleText - lua/includes/modules/draw.lua:65
3. SimpleTextOutlined - lua/includes/modules/draw.lua:106
4. unknown - addons/suit_up__[armor_system]_1787742349/lua/autorun/sh_suitup_init.lua:223

- I have configured the suitup_config.lua, but I never messed with cl_suitup_fonts.lua and yet I am still getting this error for some reason. Anyone have a fix?
uganda ball swallower 16 Oct, 2021 @ 10:55am 
idk where to find the config file
Conquest 20 Oct, 2020 @ 3:09am 
Really good addon really friendly with the code easy to configure but i have a little problem im trying to figure out how to code in when you die that the suit isnt still on you any help?
daowdawd **********.com  [author] 12 Dec, 2019 @ 1:13pm 
yeah sorry mate, probably severely outdated and wont be updating it.
cigaretteburps 10 Dec, 2019 @ 8:22am 
Great addon two problems
1st Your suit stays on when you die /dropsuit after you die and you drop the one you died with,
2nd My players are going black screened when they see two suit boxs at a time.
Big Crumb |HM| 26 Nov, 2019 @ 1:03pm 
Yo if anyone wanna friend me and help me make custom armor that would be great:steamhappy:
Slaint 7 Nov, 2019 @ 9:59am 
Its not working?
I have done everything and its not wokring mate
Nartz 8 Aug, 2019 @ 3:01pm 
nvm it works :D
Nartz 8 Aug, 2019 @ 2:49pm 
i dont understand i just get a gma file but not a config
daowdawd **********.com  [author] 27 Jul, 2019 @ 2:31pm 
no i cant, dont have discord sorry.
Goto this page, {LINK REMOVED} and type in the url of the addon and download it