--This file is to help developers add new structures to the game! STRUCT = {} --A name for this structure, each type of structure must have a different name STRUCT.Name = "Example Structure" --The model for this structure. STRUCT.Model = "models/props_combine/breendesk.mdl" --The initalize method. Called on both the server and the client STRUCT.onInitialize = function(self) --print("Initalize called!") end --If this structure is not like every other structures of the same name (for example, if it has an internal inventory) STRUCT.uniquedata = false --Called when a player presses e on this structure, called on both the server and the client. Keep in mind that on the client side, ply may not be the local player! STRUCT.onUse = function(self,ply) --print("onUse called!") end --Don't forget to register the structure when you're done! registerStructure(STRUCT)