I was wondering how you make a script that will disable world props from spawning.
Here's the [URL="https://www.google.ca/search?q=gmod+lua+disable+world+props&rlz=1C1_____enCA459CA459&oq=gmod+lua+disable+world+props&aqs=chrome.0.57j62l2.3822&sugexp=chrome,mod=10&sourceid=chrome&ie=UTF-8#hl=en&rlz=1C1_____enCA459CA459&q=+site:facepunch.com+gmod+lua+disable+world+props&sa=X&ei=JSatUL-0LIiy2wWV54HQAQ&ved=0CDAQrQIwAQ&bav=on.2,or.r_gc.r_pw.r_qf.&fp=2541bac0331255fb&bpcl=38897761&biw=1600&bih=733"]answer[/URL].
I don't see how this is funny, I highly doubt Velocity put any effort into researching to find a solution before he makes a thread for any issue he has. Google is useful, and you should learn how to use it.
Ignoring that asshole, Here is a thread you should look at: [url]http://facepunch.com/showthread.php?t=1129339[/url]
[QUOTE=kp3;38545247]Ignoring that asshole, Here is a thread you should look at: [url]http://facepunch.com/showthread.php?t=1129339[/url][/QUOTE]
You misewell just post the script found on that page:
[CODE]hook.Add("InitPostEntity", "DeleteShiz", function()
for k,v in pairs(ents.GetAll()) do
if string.find(v:GetClass(), "prop") then
SafeRemoveEntity(v)
end
end
end)[/CODE]
Kind of uncalled for to call you an asshole, Sorry.
[QUOTE=kp3;38545773]Kind of uncalled for to call you an asshole, Sorry.[/QUOTE]
No problem, but I just get sick of kids posting here first.
There's so many search engines on the internet with solutions. Like, that link you posted was the fourth result on google from the link I posted, but I guess it's their choice if they don't want to learn how to find solutions by themselves.
[QUOTE=brandonj4;38545640]You misewell just post the script found on that page:
[CODE]hook.Add("InitPostEntity", "DeleteShiz", function()
for k,v in pairs(ents.GetAll()) do
if string.find(v:GetClass(), "prop") then
SafeRemoveEntity(v)
end
end
end)[/CODE][/QUOTE]
You stole it from my addon you skid. :v:
[QUOTE=NinjaS;38562066]You stole it from my addon you skid. :v:[/QUOTE]
He actually just pasted what this guy said: [url]http://facepunch.com/showthread.php?t=1129339&p=32577018[/url]
[QUOTE=ms333;38562084]He actually just pasted what this guy said: [url]http://facepunch.com/showthread.php?t=1129339&p=32577018[/url][/QUOTE]
He stole it long before I coded it first.
[QUOTE=NinjaS;38562188]He stole it long before I coded it first.[/QUOTE]
You can't really steal a script that ents.GetAll, checks class, and then removes. Get over yourself.
Sorry, you need to Log In to post a reply to this thread.