Could anyone make a code for that will show rank in surface.DrawText ( “Rank :”…Rank )
Basically its just a local command like local Rank = Code
Could anyone make a code for that will show rank in surface.DrawText ( “Rank :”…Rank )
Basically its just a local command like local Rank = Code
Not sure what you’re asking sooo
[lua]
surface.DrawText("Rank: "…LocalPlayer():GetNWInt(“usergroup”))
[/lua]
[lua]local rank = (exsto and ply.GetRank and ply:GetRank()) or (ply.EV_GetRank and ply:EV_GetRank()) or (ply.GetUserGroup and ply:GetUserGroup())[/lua]?
What do you need it for?
I need it for a HUD.
Players on your server should know their rank without showing them it all the time.
Its a test HUD where i try using all the commands. I want to see how they Work. I began learning lua as you did suggest me to do at a topic about DarkRP HUD
[editline]25th August 2013[/editline]
Could you make it so it Works with ULX?
ply:GetUserGroup()
It does
[lua]local rank = (exsto and ply.GetRank and ply:GetRank()) or --Exsto
(ply.EV_GetRank and ply:EV_GetRank()) or --Evolve
(ply.GetUserGroup and ply:GetUserGroup()) --ULX[/lua]
Lol i didnt try just saw extso and EV_GetRank