Garry's Mod Wiki

Revision Difference

util.TableToKeyValues#547387

<function name="TableToKeyValues" parent="util" type="libraryfunc"> <description>Converts the given table into a key value string.</description>⤶ <description>Converts the given table into a Valve key value string.⤶ Use <page>util.KeyValuesToTable</page> to perform the opposite transformation.⤶ ⤶ You should consider using <page>util.TableToJSON</page> instead.⤶ </description>⤶ <realm>Shared and Menu</realm> <args> <arg name="table" type="table">The table to convert.</arg> <arg name="parentKey" type="string" default="TableToKeyValues">The parent key.</arg> <arg name="rootKey" type="string" default="TableToKeyValues">The root key name for the output KV table.</arg> </args> <rets> <ret name="" type="string">KeyValueString</ret>⤶ <ret name="" type="string">The output.</ret>⤶ </rets> </function>