- Версия MoonLoader
 - .027.0-preview
 
Хукнул пакет. Хочу сделать что бы пакет отправлялся в функции. Но почему то не отправляется. Не очень понимаю в чем проблема
Отправляю нажатие клавиши альт
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			Отправляю нажатие клавиши альт
			
				Lua:
			
		
		
		local Alt = {215, 2, 0, 0, 0, 0, 0, 21, 0, 0, 0, 79, 110, 80, 108, 97, 121, 101, 114, 67, 108, 105, 101, 110, 116, 83, 105, 100, 101, 75, 101, 121, 2, 0, 0, 0, 100, 18, 0, 0, 0 }
function tr (onSendPacket, id, bitstream)
    local nx, ny, nz = getCharCoordinates(playerPed)
    lua_thread.create(function()
    setCharCoordinates(PLAYER_PED, -3363.2517089844, 5562.4921875, 17.188188552856) 
    wait(1500)
    setCharCoordinates(PLAYER_PED, -1370.9328613281, 671.51721191406, 1092.2117919922)
    wait(2500)
    setCharCoordinates(PLAYER_PED,-1384.0859375, 669.56463623047, 1092.0551757813)
    wait(1800)
    setCharCoordinates(PLAYER_PED, -1401.2071533203, 669.29211425781, 1092.1446533203)
    wait(1500)
    setCharCoordinates(PLAYER_PED, -1414.263671875, 677.03277587891, 1092.6433105469)
    wait(1500)
    setCharCoordinates(PLAYER_PED, -1415.2772216797, 683.4619140625, 1090.2421875)
    wait(1500)
    setCharCoordinates(PLAYER_PED, -1416.1584472656, 692.69647216797, 1090.740234375)
    wait(1500)
    setCharCoordinates(PLAYER_PED, -1413.6710205078, 704.048828125, 1091.6923828125)
    wait(1500)
    setCharCoordinates(PLAYER_PED, -1409.0500488281, 710.82232666016, 1093.1495361328)
    wait(2000)
    setCharCoordinates(PLAYER_PED, -1405.2224121094, 719.08422851563, 1091.6872558594)
    wait(1500)
    setCharCoordinates(PLAYER_PED, -1409.1895751953, 724.25482177734, 1092.2730712891)
    wait(4500)
    setCharCoordinates(PLAYER_PED, -1409.1895751953, 724.25482177734, 1092.2730712891)
    wait(1800)
   setCharCoordinates(PLAYER_PED, -1426.7913818359, 724.83666992188, 1092.3135986328)
    wait(1000)
    setCharCoordinates(PLAYER_PED, -1425.9050292969, 728.01733398438, 1096.9252929688)
    wait(1000)
    setCharCoordinates(PLAYER_PED, -1414.5168457031, 736.33538818359, 1096.5988769531)
    wait(6000)
    if id == 215 then
        raknetBitStreamSetReadOffset(bitstream, 344)
        raknetBitStreamSendBytes(Alt)
        sampAddChatMessage("Пакет отправлен")
    else
        sampAddChatMessage("123", -1)
        wait(5000)
        nt()
    end
  
  
    wait(10000)
  
  
  
  
  
end)
end
function raknetBitStreamSendBytes(arrayBytes)
    local bitstream = raknetNewBitStream()
    for _, byte in ipairs(arrayBytes) do
        raknetBitStreamWriteInt8(bitstream, byte)
    end
    raknetSendBitStream(bitstream)
end
	
			
				Последнее редактирование: