• Fancy Table to text file command? What was it?
    5 replies, posted
What was the function that takes a table and sets it up into a nice and human readable format for the tables? The result is similar to the Vechicle Scripts... It was something like TableToKeyValues and KeyValuesToTable or something of the sort. I can't find it on the Wiki.
file.Write(gmod.GetGamemode().Name .."/Money/".. string.gsub(self:SteamID(), ":", "_") ..".txt", self:GetMoneyString()) Something like that but modified?
It gives an output like so: [code] "ep_02.donothesitate" { "channel" "CHAN_VOICE" "volume" "VOL_NORM" "pitch" "PITCH_NORM" "soundlevel" "SNDLVL_TALKING" "wave" "*vo/npc/vortigaunt/donothesitate.wav" } "ep_02.eli_launch_affirm01" { "channel" "CHAN_VOICE" "volume" "VOL_NORM" "pitch" "PITCH_NORM" "soundlevel" "SNDLVL_TALKING" "wave" "*vo/outland_12a/launch/eli_launch_affirm01.wav" } [/code]
[b][url=http://wiki.garrysmod.com/?title=Util.TableToKeyValues]Util.TableToKeyValues [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Damn... I had the name exact and yet I still couldn't find it. /facepalm
I would recommend using [url=luasearch.overvprojects.nl] Overv's Lua Search[/url]. It is a more effective search than using the wiki's one (for me at least).
Sorry, you need to Log In to post a reply to this thread.