Garry's Mod Wiki


  table constraint.FindConstraints( Entity ent, string type )


Returns a table of all constraints of a specific type directly connected to the entity.

If you are looking for a list of all constraints, use constraint.GetTable.


1 Entity ent
The entity to check
2 string type
The type of constraint, case sensitive. List of default constrains is as follows:
  • Weld
  • Axis
  • AdvBallsocket
  • Rope
  • Elastic
  • NoCollide
  • Motor
  • Pulley
  • Ballsocket
  • Winch
  • Hydraulic
  • Muscle
  • Keepupright
  • Slider


1 table
All the constraints of this entity.