• Halp with knive
    16 replies, posted
ok my freind is makeing a knife swep but he has one wrong prob its being held like a pistol he wants to know if there is a fix to make it be held like a knife like in css
remove the "if (SERVER) then" line that's around the "setHoldType("")"in the lua file. Garry made it shared in the last few updates. I'm just guessing, i'm a modeler, this topic would fit better in the lua section.
[QUOTE=Naelstrom;24289355]remove the "if (SERVER) then" line that's around the "setHoldType("")"in the lua file. Garry made it shared in the last few updates. I'm just guessing, i'm a modeler, this topic would fit better in the lua section.[/QUOTE] 0.0 i have no idea what you said lol but i guess teh guy im helping will thanks [editline]04:33PM[/editline] [QUOTE=Naelstrom;24289355]remove the "if (SERVER) then" line that's around the "setHoldType("")"in the lua file. Garry made it shared in the last few updates. I'm just guessing, i'm a modeler, this topic would fit better in the lua section.[/QUOTE] were extacly do i have to edit it?
[QUOTE=Alexis-nyan;24291298]were extacly do i have to edit it?[/QUOTE] The init.lua of whatever weapon it is usually.
[QUOTE=Silver Spirit;24293565]The init.lua of whatever weapon it is usually.[/QUOTE] snapshots or vid :3 ? my freinds offline so i have to do wahtever i can to help if you dont wanna take snapshots or a vid tell me the trail garrysmod/garrysmod like that [editline]10:40PM[/editline] [QUOTE=Naelstrom;24289355]remove the "if (SERVER) then" line that's around the "setHoldType("")"in the lua file. Garry made it shared in the last few updates. I'm just guessing, i'm a modeler, this topic would fit better in the lua section.[/QUOTE] im gonna need much clearer words
Without knowing which weapon it would be pretty hard to show you if you don't know what i'm referring to by an init.lua
[QUOTE=Silver Spirit;24300588]Without knowing which weapon it would be pretty hard to show you if you don't know what i'm referring to by an init.lua[/QUOTE] were starting with a crowbar the name is crowbar.mdl
[QUOTE=Alexis-nyan;24300632]were starting with a crowbar the name is crowbar.mdl[/QUOTE] um... you do know thats the model of the weapon not the weapon code right?
[QUOTE=Silver Spirit;24300660]um... you do know thats the model of the weapon not the weapon code right?[/QUOTE] >.> sorry i dun know much about codeing the only thing i made was a automatic pistol >..< babaababababa
You will learn more if you figure it out yourself. It's really hard helping you when we know nothing.
[QUOTE=Naelstrom;24301096]You will learn more if you figure it out yourself. It's really hard helping you when we know nothing.[/QUOTE] il try and learn in teh future :3 il make really cool sweps but now i jsut need help switching the holdtype of knifes
[QUOTE=Naelstrom;24289355]remove the "if (SERVER) then" line that's around the "setHoldType("")"in the lua file. Garry made it shared in the last few updates. I'm just guessing, i'm a modeler, this topic would fit better in the lua section.[/QUOTE] omg im learning :D i did it :D il giev you 100% credit for helping me fix it
Congrats! You learned how to delete one line of code!
[QUOTE=Dave_Parker;24310343]If (s)he actually understood what it did then yes, it's a step.[/QUOTE] :D she btw im jsut being a boddy actor and actor :D [editline]10:15AM[/editline] [QUOTE=Dave_Parker;24310343]If (s)he actually understood what it did then yes, it's a step.[/QUOTE] oh yea who knows how to install this [url]http://www.garrysmod.org/downloads/?a=view&id=93127[/url] ive put it in addons but it dosent work if i have to edit a lua file give me directions on what i have to edit/remove
[QUOTE=Alexis-nyan;24310725]oh yea who knows how to install this[/QUOTE] I suspect you just put it in the garrysmod addons folder (if it has been made correctly with an info.txt, also remember to unzip it first).
[QUOTE=Silver Spirit;24313397]I suspect you just put it in the garrysmod addons folder (if it has been made correctly with an info.txt, also remember to unzip it first).[/QUOTE] ok :3
Sorry, you need to Log In to post a reply to this thread.