local vkeys = require 'lib.vkeys'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
if wasKeyPressed(vkeys.VK_F2 --[[Активация на F2 можешь поменять]]) then
if not isSampfuncsConsoleActive() and not sampIsChatInputActive() then
sampSendChat('/time')
end
end
end
end