Alright, so in my darkRP server, I wanted to implement something for people who want to be speedy, so there will be an entity, (a boot) that they buy in the F4 menu, they press E on it, and get +10 Run speed and walk speed, I know the function gm.config.walkspeed but I am a very new lua coder so I dont know how to modify it. And if anyone could also tell me how to save it when they rejoin/disconnect?
NOTE: I'm not looking to SET the walk speed, I want to ADD, Because there are multiple items i'm going to implement so they all should be added to the sum.
considering the title of this thread ("Modify-able Character Traits") im willing to bet that when this gets done, you will make another thread about another addon you wish you make about darkrp, and unless you learn lua i doubt anyone will help you. but thats just my 2 cents worth.
you can use ply:SetWalkSpeed and ply:SetRunSpeed which is what you will need for this, and you will need to use something server side that can save data (ie writing to files, sql lite [bundled with gmod], or a 3rd part module like tmysql3/4, mysqloo) and use it to read/write the player info.
seeing as darkrp already had and sql lite/mysqloo setup implemented i would advise using that, which means you will need to know the very basics of sql/mysql.
Sorry, you need to Log In to post a reply to this thread.