• Tools?
    5 replies, posted
Is there any way to change the current tool being used by a player in gmod? All I found was [URL="http://wiki.garrysmod.com/page/Player/GetTool"]ply:GetTool()[/URL], but no ply:SetTool (Even tried it anyways, no such method exists...)
There's no a tool_mode command?
What about [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/spawnmenu/ActivateTool]spawnmenu.ActivateTool[/url]?
[QUOTE=mijyuoon;48695164]What about [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/spawnmenu/ActivateTool]spawnmenu.ActivateTool[/url]?[/QUOTE] Tried it, it just didn't seem to work for some reason [CODE]if SERVER then util.AddNetworkString( "change" ) hook.Add( "PlayerSay", "MhmmMhmmresrs", function( ply, text, public ) if string.lower( text ) == "!change" then net.Start( "change" ) net.Send( ply ) end end ) end if CLIENT then net.Receive( "change", function() if LocalPlayer():GetTool() == "weld" then spawnmenu.ActivateTool( "camera" ) else spawnmenu.ActivateTool( "weld" ) end end ) end [/CODE]
RunConsoleCommand("gmod_toolmode", "weld") and then set the toolgun weapon?
[QUOTE=Giraffen93;48695293]RunConsoleCommand("gmod_toolmode", "weld") and then set the toolgun weapon?[/QUOTE] Oh cool, thanks. Didn't realize there was a concommand for that
Sorry, you need to Log In to post a reply to this thread.