Garry's Mod Wiki

Revision Difference

table.GetFirstValue#551727

<function name="GetFirstValue" parent="table" type="libraryfunc"> <description> <deprecated>Instead, index the table with a key of 1. Non-numerically indexed tables are not ordered and do not have a first key.</deprecated> Returns the first value found in the given table </description> <realm>Shared and Menu</realm> <file line="608">lua/includes/extensions/table.lua</file> <file line="619-L622">lua/includes/extensions/table.lua</file> <args> <arg name="tab" type="table">Table to retrieve value from</arg> </args> <rets> <ret name="" type="any">Value</ret> </rets> </function>