Garry's Mod Wiki

Revision Difference

Entity:GetFlexIDByName#549442

<function name="GetFlexIDByName" parent="Entity" type="classfunc"> <description>Returns the ID of the flex based on given name. <note>This function will search by beginning of a name.</note>⤶ </description>⤶ <description>Returns the ID of the flex based on the beginning or the entire name.</description>⤶ <realm>Shared</realm> <args> <arg name="name" type="string">The name of the flex to get the ID of. Case sensitive.</arg> </args> <rets> <ret name="" type="number">The ID of flex * nil if no flex with given name was found</ret> * `nil` if no flex with given name was found</ret> </rets> </function>