Garry's Mod

Garry's Mod

Rp_stardestroyer infinite
Stryker 21 Feb, 2018 @ 2:27am
Server autorun hook to disable shiny floor
This code will autoremove the shiny floor in MH1 on map change/ server restart.

place this in a lua file called removeflr.lua in lua/autorun/server/removeflr.lua

hook.Add("InitPostEntity","removeflr",function() for k,v in pairs(ents.FindByClass("func_reflective_glass")) do if ents.GetMapCreatedEntity( 1235 ) then -- Find yourself the models for doors. v:Remove() end end end)
< >
Showing 1-2 of 2 comments
Lord Trilobite  [developer] 22 Feb, 2018 @ 12:11pm 
Very nice. This should be useful to some server owners.
billeh 13 Oct, 2018 @ 7:52am 
saxy
< >
Showing 1-2 of 2 comments
Per page: 1530 50