- 14
- 4
- Версия SA-MP
-
- 0.3.7 (R1)
- 0.3.7-R2
- 0.3.7-R3
- 0.3.7-R4
- 0.3DL
local toggle = false
function main()
while true do
wait(150)
if wasKeyPressed(0x72) then -- F3
toggle = not toggle
end
if toggle then
setVirtualKeyDown(0x12, true)
wait(10)
setVirtualKeyDown(0x12, false)
if toggle then
setVirtualKeyDown(0x0D, true)
wait(10)
setVirtualKeyDown(0x0D, false)
end
end
end
function main()
while true do
wait(150)
if wasKeyPressed(0x72) then -- F3
toggle = not toggle
end
if toggle then
setVirtualKeyDown(0x12, true)
wait(10)
setVirtualKeyDown(0x12, false)
if toggle then
setVirtualKeyDown(0x0D, true)
wait(10)
setVirtualKeyDown(0x0D, false)
end
end
end