• Derma list to read from file
    5 replies, posted
So I've created a SWEP that does 8 different functions when you do PrimaryAttack(). When you use PrimaryAttack() it then outputs what function it randomly chose into an external data file along with the SWEP users steamID and name. What I want to do now is have that data be input into a derma file which I can then choose to delete from the derma. I am seriously struggling with this, I'm quite new to GLua and Lua as a whole really so I've been looking around the gmod wiki trying to piece together a solution but cannot figure it out. I'd be extremely grateful if someone could point me in the right direction, thanks
not sure if bumping is allowed. But just to clarify, I need help with the process that allows the Derma to be populated by each line of an external file
Should I be using file.Write/ file.Append or should I be making a database? So confused
Let's see if I have understood you correctly. You want to create a derma menu that will list rows of information that are read from a datafile. You also want to be able to remove each row from the derma menu? If I were to create this I would most likely do it using an SQL database. Have a look at this Category
Yeah that's exactly what I need it to do, sorry if my OP was a bit cryptic lol
So I've looked into it a little bit more, and I've seen that using util.TableToJSON and util.JSONToTable are recommended for this sort of stuff but I'm still confused on how to implement them into my current code and then work on that to make them populate a derma
Sorry, you need to Log In to post a reply to this thread.