slot0 = require("memory")
function main()
while not isSampAvailable() do
wait(100)
end
sampRegisterChatCommand("showfps", showfps)
while true do
wait(0)
end
end
function sampOnChatMessage(slot0)
if slot0.message == "{DFCFCF}[\\xcf\\xee\\xe4\\xf1\\xea\\xe0\\xe7\\xea\\xe0] {DC4747}\\xc2\\xfb \\xec\\xee\\xe6\\xe5\\xf2\\xe5 \\xe7\\xe0\\xe4\\xe0\\xf2\\xfc \\xe2\\xee\\xef\\xf0\\xee\\xf1 \\xe2 \\xed\\xe0\\xf8\\xf3 \\xf2\\xe5\\xf5\\xed\\xe8\\xf7\\xe5\\xf1\\xea\\
xf3\\xfe \\xef\\xee\\xe4\\xe4\\xe5\\xf0\\xe6\\xea\\xf3 /report." then
sampAddChatMessage("{0000CD}[ShowFps]: {FFFFFF}\\xd1\\xea\\xf0\\xe8\\xef\\xf2 \\xe7\\xe0\\xef\\xf3\\xf9\\xe5\\xed!", -1)
sampAddChatMessage("{0000CD}[ShowFps]: {FFFFFF}/showfps", -1)
sampAddChatMessage("{0000CD}[ShowFps]: {FFFFFF}\\xc0\\xe2\\xf2\\xee\\xf0 \\xf1\\xea\\xf0\\xe8\\xef\\xf2\\xe0 - Kirill_Safe.", -1)
else
wait(30000)
sampAddChatMessage("{0000CD}[ShowFps]: {FFFFFF}\\xd1\\xea\\xf0\\xe8\\xef\\xf2 \\xe7\\xe0\\xef\\xf3\\xf9\\xe5\\xed!", -1)
sampAddChatMessage("{0000CD}[ShowFps]: {FFFFFF}/showfps", -1)
sampAddChatMessage("{0000CD}[ShowFps]: {FFFFFF}\\xc0\\xe2\\xf2\\xee\\xf0 \\xf1\\xea\\xf0\\xe8\\xef\\xf2\\xe0 - Kirill_Safe.", -1)
end
end
function showfps()
active = not active
if active then
thread = lua_thread.create(function ()
while active do
wait(500)
printStyledString(math.floor(uv0.getfloat(12045136, true)) .. "fps", 1000, 5)
wait(500)
end
end)
else
thread:terminate()
end
end