

NOTICE : Some weapons will be left handed, but Gmod does not have any option to switch weapon hands. Note : In the last part the example spawn and put the rack in the machine. After that start Gmod and join a server, or start a singleplayer game, and test out the skins. Rack:SetLocalPos(THE_LOCAL_POS) - where the rack is relative to the machine Rack:SetParent(machine) - set the parent to machine Local rack = ents.Create("rack") - create a rack entity Machine:SetPos(THE_POSITION) - change the position of spawn Self:SetModel("models/machime/machime.mdl")ġ.2 lua/entities/machine/cl_a include('a')ġ.3 lua/entities/machine/a ENT.Type = "anim"ĮNT.Purpose = "This is a really good machine"Ģ.2 lua/entities/rack/cl_a include('a')Ģ.3 lua/entities/rack/a ENT.Type = "anim"įinally to put the rack in the machine you can use ENT:SetParent : local machine = ents.Create("machine") - create a new machine entity
