• Help with some Lua Code for my custom game mode(no smart ass jerks)
    5 replies, posted
Hey all I've started learning lua over the last 2 or so weeks, just here and there. I am currently coding my own custom game mode for my new 24/7 server. I am making a stats derma menu, which just lists general info such as deaths, kills, etc. The thing i need help with is, i got the code off the Wiki and fitted it into my derma menu nicely , but i need help making the values of death column for example go up when you die. local DermaListView = vgui.Create("DListView") DermaListView:SetParent(SheetItemThree) DermaListView:SetPos(15, 30) DermaListView:SetSize(650, 330) DermaListView:SetMultiSelect(false) DermaListView:AddColumn("Name") DermaListView:AddColumn("Human kills") DermaListView:AddColumn("Zombie kills") DermaListView:AddColumn("Deaths") function DermaListView:Paint() draw.RoundedBox( 8, 0, 0, self:GetWide(), self:GetTall(), Color(255,215,0,255) ) end for k,v in pairs(player.GetAll()) do DermaListView:AddLine(v:Nick(),v:Frags()) -- [B][U]THESE HERE!!!WHAT ARE THEY CALLED?[/U][/B] end Can you please explain to me what these are called and where i could find a list of them? Thanks ALOT. -Hosky [highlight](User was banned for this post ("utt" - garry))[/highlight]
What are what called?
DermaListView:AddLine(v:Nick(),v:Frags()) sorry i know i was unclear, v:Nick() what is that called, i wanna find one like that that can be used to record your deaths.
Those are player functions. You can find a list of them [url=http://wiki.garrysmod.com/page/Category:Player]here[/url]. You may find that you get a quicker response next time by not being so rude to potential helpers.
Sorry i'm not trying to be, in fact the opposite, i have been over many forum posts to look for info and all i saw was no answers but hate, like why are you even bothering if you don't understand. I'm here for help and to learn and so is everyone else that posts. Just annoys me the community on here so harsh. [editline]23rd March 2013[/editline] Never the less, thanks a lot for the help i appreciate it.
Try v:Deaths() for the deaths.
Sorry, you need to Log In to post a reply to this thread.