local font = renderCreateFont("Arial", 10, 13)
function main()
while true do wait(0)
local players = 0
for _, h in ipairs(getAllChars()) do
if h ~= PLAYER_PED and sampGetPlayerIdByCharHandle(h) then
players = players + 1 end
end
renderFontDrawText(font, "Stream: "..players, 15, 450, -1)
end
end