local vkeys = require "vkeys"
function main()
repeat wait(0) until isSampAvailable()
while true do wait(0)
if isKeyJustPressed(vkeys.VK_L) then
bool = not bool
end
if bool and not sampIsChatInputActive() and not sampIsDialogActive() then
setVirtualKeyDown(18, true)
wait(10) -- поиграйся с задержкой
setVirtualKeyDown(18, false)
end
end
end