getFPSLimit | Multi Theft Auto: Wiki Skip to content

getFPSLimit

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function retrieves the maximum FPS (Frames per second) that players on the server can run their game at.

Note

Starting from version [ r21313 ] and above fpsLimit range is 25-32767 . In older MTA releases it was 25-100 .

Syntax

getFPSLimit ( )

Code Examples

server

This example displays a message in the chatbox showing the current FPS limit.

function checkFPSLimit()
local fpsLimit = getFPSLimit()
outputChatBox("The FPS limit is: "..fpsLimit)
end
addCommandHandler("checkfpslimit", checkFPSLimit) -- Add command "checkfpslimit" which calls the function checkFPSLimit