• Disallow collisions on vehicals?
    0 replies, posted
Is there away that i can make it so that vehicles can not be no collided ever? we have been using this for disabling it on the tool [lua] local DisallowedClasses = {} DisallowedClasses[ "prop_physics" ] = true hook.Add( "CanTool", "NoNocollide", function( pl, tr, tool ) if tool:lower() == "nocollide" and DisallowedClasses[ tr.Entity:GetClass():lower() ] then pl:ChatPrint( "This entity cannot be nocollided." ) return false end end ) [/lua] what we need is away to disbale it from context menu. is there a easy way of doing this?
Sorry, you need to Log In to post a reply to this thread.