Hey,
I was wondering if I could get some help on my command, I'm new in lua and I'm trying to learn .
I found this command and I would like to have a timer of like 5 seconds before the suits drops down :
DarkRP.defineChatCommand("dropsuit", function( ply, arguments )
local data = Armor:Get( ply.armorSuit )
if ( data ) then
ply:removeArmorSuit();
local trace = {}
trace.start = ply:EyePos()
trace.endpos = trace.start + ply:GetAimVector() * 85
trace.filter = ply
local tr = util.TraceLine(trace)
local entity = ents.Create( data.Entitie );
entity:SetPos( tr.HitPos );
entity:Spawn();
end
end )
end,
})
Thank you for your help,
Me
Simply put: timer.Simple
Sorry, you need to Log In to post a reply to this thread.