Ok, so I am now trying to make it so on my Hud, it shows the player's Steam Friends Name. Now when I try and use the code below, it does the DarkRP name. Anyone have any ideas on how to make it display friends name?
[b] This is what I have been using. [/b]
[lua] for k, v in pairs(player.GetAll()) do
surface.DrawText("Name: "..v:Nick())
end [/lua]
Thanks to anyone who helps.
[editline]30th January 2011[/editline]
Also, another request, would I need to use vgui to make the Hud only show with F1? If so, some help with that too please.
[highlight](User was permabanned for this post ("Extended - spamming on a alt" - Craptasket))[/highlight]
DarkRP resets the value of Nick.
As per Google trunk here: [url]http://www.google.com/codesearch/p?hl=en#XR36vfyGThU/trunk/gamemode/init.lua&q=steam%20package:http://darkrp%5C.googlecode%5C.com&sa=N&cd=4&ct=rc&l=27[/url]
You just need to do v:SteamName().
Thanks. Sorry for replying to an ancient thread. Just telling you that this still works :D
Sorry, you need to Log In to post a reply to this thread.