Garry's Mod Wiki

Entity:GetFlexWeight

  number Entity:GetFlexWeight( number flex )

Description

Returns current weight ( value ) of given flex controller. Please see Entity:SetFlexWeight regarding limitations.

Arguments

1 number flex
The ID of the flex to get weight of

Returns

1 number
The current weight of the flex, or 0 if out of bounds.