Garry's Mod Wiki

Revision Difference

table.KeyFromValue#551597

<function name="KeyFromValue" parent="table" type="libraryfunc"> <description>Returns the first key found to be containing the supplied value</description> <realm>Shared and Menu</realm> <file line="655-L659">lua/includes/extensions/table.lua</file> <file line="672-L676">lua/includes/extensions/table.lua</file> <args> <arg name="tab" type="table">Table to search</arg> <arg name="value" type="any">Value to search for</arg> </args> <rets> <ret name="" type="any">Key</ret> </rets> </function>