local font_flag = require('moonloader').font_flag
local my_font = renderCreateFont('Arial', 12, font_flag.BOLD + font_flag.SHADOW)
function main()
while not isSampAvailable() do wait(100) end
while true do
result, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
nick = sampGetPlayerNickname(id)
color = sampGetPlayerColor(id)
renderFontDrawText(my_font, color .. nick .. " [" .. id .. "]", 20, 300, 0xFFFFFFFF)
wait(0)
end
end