Hey, I was trying to find a way to switch the default Jailbreak gamemode weapons to M9K weapons.
First, is this even possible?
Second, if it is possible, how could this be done?
Third, if it can be done, would I be able to switch the default guns on the armory walls out for M9K?
Thanks in advance.
[highlight](User was banned for this post ("Didn't read the sticky" - Craptasket))[/highlight]
[lua]
hook.Add("Think", "REMOVEALLDATHINGS", function()
for k,v in pairs(ents.FindByClass("weapon_m16")) do -- what ever your entities are
local entityreplace = ent.Create("weapon_m9k_watever")
entityreplace:SetPos(v:GetPos())
entityreplace:Spawn()
v:Remove()
end
end)[/lua] Serverside file
Thanks, sm63. I know I might sound a bit ignorant here, but where exactly would I put that code?
[QUOTE=LordBawb;44772727]Thanks, sm63. I know I might sound a bit ignorant here, but where exactly would I put that code?[/QUOTE]
lua/autorun/server, aka serverside
this works yet ?
Please check the date before posting in threads.
Sorry, you need to Log In to post a reply to this thread.