• Another TDM CARS (Or just cars) problem!
    3 replies, posted
Hello there Facepunch users! Is there a way to block material and color tool on vehicles (HL2 Jeep for example) Thank you for reading! Bye! :dance:
Indeed there is: [url]http://wiki.garrysmod.com/page/SANDBOX/CanTool[/url]
Robotboy. Im not sure if i cant find my answear on that site or if you just didn't get my question! :D I dont want people to use ANY tools actually on vehicles! Thank you for your previous answear! :dance: If there's a code on that site btw. Could you reply it here please! [editline]26th February 2014[/editline] Or wait. I got it! but is there somehow you can do maybe: function GM:CanTool( ply, tr, tool ) if ( tool == "all" and IsValid( tr.Entity ) and tr.Entity:GetClass() == "hl_jeepsomethingcantrememberthenamelol" ) then return false end end
[lua] function GM:CanTool( ply, tr, tool ) if ( tool == "all" and IsValid( tr.Entity ) and tr.Entity:IsVehicle then return false end end [/lua] Try this.
Sorry, you need to Log In to post a reply to this thread.