• No Vehicle Collision
    1 replies, posted
Hey everyone! First, I would like to say thanks for reading, and answering my previous questions on this forum. Now, I want to ask if the Lua Coders of FP could help me with a small script. Can someone please make a small script that allows vehicles to no collide with one another so they go right through. It's a small script, and I hope someone can answer quickly. Thanks in advance!
Here you go, put it into a lua file in lua/autorun/server/ [lua] function NoVehicleCollision() for k, v in pairs( ents.GetAll() ) do if v:IsVehicle() and not v.NoVehicleCollision then v:SetCollisionGroup( COLLISION_GROUP_INTERACTIVE ) v.NoVehicleCollision = true end end end hook.Add( "Think", "NoVehicleCollision", NoVehicleCollision ) [/lua]
Sorry, you need to Log In to post a reply to this thread.