Quick help.

I Was making a HUD for something to do and i was wondering if somebody could help me out,
I would like to add a text showing what the players fps is.
any help is appreciated :D.
thank you.
A picture of the hud.

It is probably something like this:

draw.SimpleTextOutlined( "FPS: " .. (1/FrameTime()), "Trebuchet20", yourposx, yourposy, Color(255,255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, 1, Color(0,0,0,255) )

You of course have to replace the font (Trebuchet20), the color and yourposx, yourposy with the values you want to use.
If FrameTime() doesn’t work properly for you, you could also try to use RealFrameTime() instead.

Looks awesome!

Thank you :D, and you wouldnt happen to know if i could make it show up as just a rounded number like 20 instead of 20.93973743 or something like that ?

Thank you :slight_smile:


Thank you all :D,
pretty much done now.