Garry's Mod

Garry's Mod

Rp_Stardestroyer
Stryker Feb 21, 2018 @ 2:26am
Server Autorun code to remove 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)