• Super easy request: Nail
    3 replies, posted
I for a while have wanted to have a nail tool that doesnt look like arse. So I went out to find a script to replace the ugly crossbows bolts with nails. I found a model of a nail on gmod.org So I tried it with the script. But the nail wase purple and black, disaster! But alas facepunch, I come to you to help me get my pretty nail model for the script. Which I will share with all of you! Here is the model I found: [url]http://www.garrysmod.org/downloads/?a=view&id=92619[/url] And the script which you save as .lua and place in garrysmod/lua/autorun/server: local offset = Vector(7, 0, 0); local angles = Angle(90, 180, 0); scripted_ents.Register({ Type = "anim", Spawnable = false, AdminSpawnable = false, Initialize = function(self) local pos, ang = LocalToWorld( offset, angles, self:GetPos(), self:GetAngles() ); self:SetPos(pos); self:SetAngles(ang); self:SetModel("models/retrobox/retro_nail_small.mdl"); end }, "gmod_nail", true); If anyone could make this nail work with textures, or straight up make another nail I would greatly appreciate it! Thanks in advance facepunch!
I come here humbly, 2 years later, still searching for this tool. If any kind-hearted individual has the ability to fix this. I will be forever indebted.
[QUOTE=Zenreon117;38306731]I come here humbly, 2 years later, still searching for this tool. If any kind-hearted individual has the ability to fix this. I will be forever indebted.[/QUOTE] Have you tried the lua section? This section is more about getting the models, not as much the usage in a toolgun.
Purple and black textures= incorrect material path. I took a look at the model and the texture should be moved to "materials/models/retroxbox/" with the .vmt modified accordingly.
Sorry, you need to Log In to post a reply to this thread.