require "lib.moonloader"
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(0)
if isKeyJustPressed(VK_F9) then
sampSendChat("/time")
end
if isKeyJustPressed(VK_F10) then
sampSendChat("/mm")
end
if isKeyJustPressed(VK_P) then
sampSendChat("/mm")
end
end
end
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(0)
if isKeyJustPressed(VK_F9) then
sampSendChat("/time")
end
if isKeyJustPressed(VK_F10) then
sampSendChat("/mm")
end
if isKeyJustPressed(VK_P) then
sampSendChat("/mm")
end
end
end
SRP создал для теста скрипт, в логе скрипт загружен,в игре 0 реакции ;\