Garry's Mod Wiki

duplicator.DoFlex

  duplicator.DoFlex( Entity ent, table flex, number scale = nil )

Description

Restores the flex data using Entity:SetFlexWeight and Entity:SetFlexScale

Arguments

1 Entity ent
The entity to restore the flexes on
2 table flex
The flexes to restore
3 number scale = nil
The flex scale to apply. (Flex scale is unchanged if omitted)