[Help] {$luacode} crushes game

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
mamba
What is cheating?
What is cheating?
Posts: 1
Joined: Mon Sep 02, 2024 4:20 pm
Reputation: 0

[Help] {$luacode} crushes game

Post by mamba »

At random moments when the script is turned on and off, the game closes

Code: Select all

[ENABLE]

aobscanmodule(thirdp,FSD-Win64-Shipping.exe,F2 0F 10 02 48 8B D9 F2 0F 11 01 48)
alloc(thimem,$1000,thirdp)

label(code)
label(return)

label(distance)

thimem:
{$luacode base=rdx}
  if not readByte('[clientp]') then return end
  local dist = readFloat('distance')

  local camX = readFloat('[[[clientp]+2C8]+258]+28C') % 360
  local camY = readFloat('[[[clientp]+2C8]+258]+288')

  local x = readFloat('[[[clientp]+2C8]+290]+1D0') - math.cos(math.rad(camX))*dist
  local y = readFloat('[[[clientp]+2C8]+290]+1D8') + 100 - math.sin(math.rad(camY))*dist
  local z = readFloat('[[[clientp]+2C8]+290]+1D4') - math.sin(math.rad(camX))*dist

  writeFloat(base+0x0,x)
  writeFloat(base+0x8,y)
  writeFloat(base+0x4,z)
{$asm}

code:
  movsd xmm0,[rdx]
  mov rbx,rcx
  jmp return

distance:
  dq (float)250

thirdp:
  jmp thimem
  nop 2
return:
registersymbol(thirdp)
registersymbol(distance)

[DISABLE]

thirdp:
  db F2 0F 10 02 48 8B D9

unregistersymbol(*)
dealloc(*)

Post Reply

Who is online

Users browsing this forum: No registered users