Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---- CLIENT FILE
- for k, v in pairs(player.GetAll()) do
- local paneltest = dashboardPanel:Add("DPanel")
- paneltest:Dock(TOP)
- paneltest:SetTall(100)
- paneltest.Paint = function(self, w, h)
- draw.SimpleText(v:GetPlayerLevel(), "qcbebas_24", w * .5, h * .5, theme.textWhite, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- end
- end
- -- SHARED FILE
- function GetPlayerLevel(ply)
- return ply:GetLevel()
- end
- -- SERVER FILE
- local _P = FindMetaTable("Player")
- function _P:GetLevel()
- return self.qcLevel
- end
Add Comment
Please, Sign In to add comment