Garry's Mod Wiki

Entity:GetFlexNum

  number Entity:GetFlexNum()

Description

Returns the number of flex controllers this entity's model has.

Please note that while this function can return the real number of flex controllers, the game supports only a certain amount due to networking limitations. See Entity:SetFlexWeight.

Returns

1 number
The number of flexes.