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
Notice
If you are looking for support you should instead create a support ticket.
how do i make it so i can put my suits in my inventory
Why did i get revoked?
Why did i get revoked?
Mia Senpaiposted
I no longer provide support for this addon please do not mention me.
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
How do I put it in the f4 menu
DM me on here and i can make you one but it be very basic
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.
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
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
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.
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
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.
-- 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 },}is there a command to allow item store to pick up the dropped suits?
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 "" endend)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
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.
how to make it work with itemstore
Showing 24 of 80 total results