PivityGmodStore

Armor Suits - Now with Saving Options!

(24)(67)

You can always read the reviews or discuss this product

M3RCY XDPurchasedposted

if i was wanting to add more kinds of armors to use how would i do it?, i've tried armor:add but it says that the entity is null

bullyblastoffPurchasedposted

how do i make it so i can put my suits in my inventory

Mia Senpaiposted

I no longer provide support for this addon please do not mention me.

ChaosKiller125Purchasedposted

Can you disable that like a Armor isnt in the Shop Menu? If im disable the price from that it disappears, but a Lua Error occures

KingCharlesPurchasedposted

How do I put it in the f4 menu

Series PlayboyPurchasedposted

Pzrfects

DM me on here and i can make you one but it be very basic

Series PlayboyPurchasedposted

Ryzikan

go in to config_armor.lua and change the top options to


Armor.Save = false // if set to true, all armors will be permanent and save

Armor.LoseOnDeath = true // if set to true, it removes when you die.

PzrfectsPurchasedposted

Anyone know how i can /dropsuit and it take 5seconds to drop and if you do can you tell me where it needs to go? thanks

Mia Senpaiposted

RawRawI'm still working on that. I'm trying the if value and everything to get that to work.

Mia Senpaiposted edited

Soul Reaver

Armor:Add({

Name = "Tier 1 Armor", 

Length = ( 9999999 * 2 ), 

Description = "T1 developed by Mia Senpai", 

Model = "models/player/swat.mdl", 

Entitie = "armor_power", 

Price = 0, 

OnGive = function( ply ) 

ply:SetArmor( 250 )

ply:SetHealth( 300 )

ply:SetJumpPower( 200 ) 

ply._oldRunSpeed = ply:GetRunSpeed()

ply:SetRunSpeed( ply:GetRunSpeed() + ( ply:GetRunSpeed() * .15 ) )

end,

OnRemove = function( ply ) 

ply:SetArmor( 0 )

ply:SetHealth( 100 )

ply:SetJumpPower( 200 )

if ( ply._oldRunSpeed ) then

ply:SetRunSpeed( ply._oldRunSpeed )

ply._oldRunSpeed = nil

end

end,

})


heres a example. I have the hud turned off so i have it set to inf time and price set to zero because its not in my f4 but I hope this helps


any question go ahead and message me

Mia Senpaiposted edited

RawRaw you need to remove the create category line in sv_armor to answer your first question I'm working on the second one as we speak


any question go ahead and message me

just a leoposted

does anyone know how to put timers on how long the suit should drop for, 5 seconds.

Series PlayboyPurchasedposted edited

Does anyone know how to remove it so it not in DarkRP F4 menu

and a script to stop putting a suit on if you got one on

Soul ReaverPurchasedposted

can anyone give me an example of a custom armor? when i try to make one, it won't drop the box, it doesn't do anything, they appear in the shop but won't drop.

ThatCatGuyPurchasedposted edited

Chumlee In the itemstore config add the ent names so you can pick them up.


-- Custom items. Defining these will allow server owners to make certain
-- entities pickupable... but may not work 100%. If this is the case, you will probably
-- need to code the item definition yourself.
-- Format for each entry is:
-- <entity class> = { "<name>", "<description>", <stackable (optional)> }
itemstore.config.CustomItems = {
   sent_ball      = { "Bouncy Ball", "A bouncy ball!", true },
   armor_tau      = { "Tier 1", "Boxed Power Armor", true },
   armor_n7      = { "Tier 2", "Boxed Power Armor", true },
   armor_power   = { "Tier 3", "Boxed Power Armor", true },
}
ChumleePurchasedposted

is there a command to allow item store to pick up the dropped suits?

ThatCatGuyPurchasedposted
hook.Add("PlayerSay", "DropSuit", function(ply, text)
 if (string.lower(text) == "/dropsuit") then
 if ( !ply.armorSuit ) then DarkRP.notify(ply, 1, 5, "You are not wearing a armor suit to drop.") return false end
 if !ply:Alive() then DarkRP.notify(ply, 1, 5, "You cannot drop a suit when you are dead.") return false end
 armorsuit = Armor:Get( ply.armorSuit )
 ply:removeArmorSuit()
  local trace = {}
  trace.start = ply:EyePos()
  trace.endpos = trace.start + ply:GetAimVector() * 30
  trace.filter = ply
 ents.Create(armorsuit.Entitie)
 local trl = util.TraceLine(trace)
 local pr = ents.Create(armorsuit.Entitie)
 pr:SetPos(trl.HitPos)
 pr:Spawn()
 return ""
 end
end)
ThatCatGuyPurchasedposted

other thing is they can wear the suit take damage drop it then re equipt it and get full health and armor is there a for this

❈ℳℛ Friendly❈Purchasedposted edited

kinda annoying thing that I found. they can duplicate the armor by /dropsuit then when they put it in their inventory and rejoin they will get the suit again and the one in the inventory will still be there. and I know this is cause of the save feature but if I turn that off the armor glitches out were you equip it and it will disappear.

SnowX__Purchasedposted

how to make it work with itemstore

Showing 24 of 80 total results