- 14
 
- 3
 
помогите с ошибкой код:
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			
			
				Код:
			
		
		
		local vkeys = require('vkeys')
local act = false
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage("{00CCFF}[Bcard v1.0] {CC3366}Bcard by Obivan Kenobi for Surprise")
    sampAddChatMessage("{00CCFF}[Bcard v1.0] {CC3366}Activation /bcard")
    while true do
        wait(0)
        if wasKeyPressed(vk.VK_F3) and not sampIsChatInputActive() and not sampIsDialogActive() and not sampIsCursorActive() then
            act = not act
            printStringNow(act and 'ON' or 'OFF', 500)
end
        if act then
            setVirtualKeyDown(18, true)
            wait(100)
            setVirtualKeyDown(18, false)
            wait(0)
            setVirtualKeyDown(13, true)
            wait(200)
            setVirtualKeyDown(13, false)
        end
    end
end