Advertisement
KiLLerBoy_001

Untitled

Sep 21st, 2023 (edited)
998
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1. -the Line with "WriteFloat" sets the in this case 2.0 that is exactly the same as normal but can be set to well anything ..
  2.  
  3.  
  4.  
  5. [ENABLE]
  6. if syntaxcheck then return end
  7. local AoB   = "C5 ?? ?? ?? ?? ?? ?? ?? C5 ?? ?? ?? C5 ?? ?? ?? ?? ?? C5 ?? ?? ?? ?? C5 ?? ?? ?? ?? ?? C5 ?? ?? ?? E8"
  8. local Scan  = aobScanEx(Start, End, AoB)
  9. print(AoB)
  10. if Scan == nil or Scan.Count ~= 1 then
  11.    print("'MovementSpeed_AoB' not found or more then 1 result:")
  12.    print(AoB)
  13. else
  14.    registerSymbol("MovementSpeed_AoB", Scan[0] .. "", true)
  15.    MovementSpeed_Backup = readBytes("MovementSpeed_AoB", 8, true)
  16.  
  17.    local MovementSpeed_Ptr = allocateMemory(1, getAddress("MovementSpeed_AoB"))
  18.    registerSymbol("MovementSpeed_Ptr", MovementSpeed_Ptr)
  19.    writeFloat("MovementSpeed_Ptr", 2)
  20. end
  21.  
  22.  
  23. [DISABLE]
  24. if syntaxcheck then return end
  25. deAlloc(getAddress("MovementSpeed_Ptr"))
  26. unregisterSymbol("MovementSpeed_Ptr")
  27. writeBytes("MovementSpeed_AoB", MovementSpeed_Backup)
  28. unregisterSymbol("MovementSpeed_AoB")
  29. MovementSpeed_Backup = nil
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement