-- Create a thread
Citizen.CreateThread(function()
-- Loop forever
while true do
-- Get the number of the current frame being displayed
local startCount = GetFrameCount()
-- Wait one second
Wait(1000)
-- Get the new number of the current frame being displayed, after waiting one second
local endCount = GetFrameCount()
-- Calculate the number of frames that have been rendered between the two points
local frameNum = endCount - startCount
-- Print the output to the console, mentioning that it is an approximate value
print("Approximate FPS: "..frameNum)
end
end)