require "lib.moonloader"
function main()
while true do
wait(0)
if not sampIsChatInputActive() and not isCharInAnyCar(PLAYER_PED) and not sampIsDialogActive() then
if isKeyDown(VK_SPACE) then
setVirtualKeyDown(VK_SPACE, true)
wait(0)
setVirtualKeyDown(VK_SPACE, false)
end
end
end
end