• [Lua] How do i load script on run
    0 replies, posted
How do i load this script on initial server run? [CODE] function Del() for k, v in pairs(ents.GetAll()) do if v:GetName() == "gunshop_gunmaker_buttons" or v:GetName() == "gunshop_weaponmaker_blackpanel" or v:GetName() == "adminroombuttons" or v:GetName() == "furnaturestore_props" or v:GetName() == "furnaturestore_respawnbutton" or v:GetName() == "homedepot_counterdoor" or v:GetName() == "furnaturestore_respawnpncover" then v:Remove() end end end hook.Add("PlayerInitialSpawn", "DTDel", Del) [/CODE] It works fine. but it loads everytime when players initial spawn. so wastes resources i wanna make it to initial server run once. *it saved on lua/autorun/server
Sorry, you need to Log In to post a reply to this thread.