• I need to make a morph addon. Can someone help?
    5 replies, posted
Well, I need to make an addon that, when I: function SWEP:PrimaryAttack() modify the playermodel. I already know playermodel that I'm going to use, but I do not know where it stands, can you help me with that too? Thanks in advance.
Entity/SetModel Have you tried searching the wiki for what you need?
Yeah, but i dont know how i use this in my code. can you give me a example ?
EY, BOYO. https://www.youtube.com/channel/UCFpuE-Qjn4EWqX-VJ_l7pbw < Lua and GLua tutorials. https://www.lua.org/docs.html The official Lua site with all the shit you need to know about it. Mentioned in the tutorials. Garry's Mod The wiki, it has a Lua tutorial for fucks sake.
function SWEP:PrimaryAttack() self.Owner:SetModel("Modelyouwant") end
THANKS GUYS
Sorry, you need to Log In to post a reply to this thread.